compute_fiscal_year: compute_fiscal_year

Description Usage Arguments Value Examples

View source: R/util.R

Description

computes the fiscal year of a vector of dates based on the Montana State fiscal calendar (July 1 - June 30).

Usage

1

Arguments

date

the vector of dates from which to compute fiscal year

Value

the vector of year integers

Examples

1
2
3
4
dte_1 <- as.Date("2018-01-01")
dte_2 <- as.Date("2018-08-01")
compute_fiscal_year(dte_1)
compute_fiscal_year(dte_2)

iancj88/msuopa documentation built on May 17, 2019, 7:07 p.m.