Fiscal year is returned as the year in which the fiscal period ends. For example, with a July start (fy_start_month = 7), 2024-07-01 is FY2025. With a January start (fy_start_month = 1), fiscal year matches the calendar year.
Usage
fy_year(date, fy_start_month = getOption("fundr.fy_start_month", 7L))Arguments
- date
A Date (or something coercible via as.Date()).
- fy_start_month
Integer 1-12. Default uses
getOption("fundr.fy_start_month", 7). Set session default withfundr_setup()orset_fy_start_month().