Skip to contents

Uses 365 days, 52 weeks, and 12 months per year. From the Budgeting chapter.

Usage

to_annual(amount, period = c("daily", "weekly", "monthly"))

Arguments

amount

Amount per period.

period

One of "daily", "weekly", or "monthly".

Value

A numeric vector of yearly amounts.

Examples

to_annual(5, period = "daily")
#> [1] 1825
to_annual(1500, period = "monthly")
#> [1] 18000