fiscal_year: Fiscal year of a date

Description Usage Arguments Value

View source: R/dates.R

Description

Many organizations use "fiscal years" as their primary time period for calculating and reporting metrics. This function lets you specify the month and day of the fiscal year and calculate the fiscal year of each date in a vector.

Usage

1
fiscal_year(date, start_month = 7, start_day = 1)

Arguments

date

A vector of dates

start_month

Integer giving the first month of the fiscal year

start_day

Integer giving the first day of the fiscal year

Value

An integer vector the same length as 'date' giving the fiscal year for each respective date.


lukerobert/luketools documentation built on Jan. 24, 2020, 2:15 a.m.