fin_year: Assign a date to a financial year

Description Usage Arguments Details Examples

View source: R/fin_year.R

Description

fin_year takes a date and assigns it to the correct financial year in the PHS specified format.

Usage

1

Arguments

date

A date which must be supplied with Date class. The functions as.Date() or lubridate::dmy() are examples of functions that can be used to change a variable to date class.

Details

The PHS accepted format for financial year is yyyy/yy e.g. 2017/18.

Examples

1
2
3
x <- lubridate::dmy(c(21012017, 04042017, 17112017))

fin_year(x)

davidc92/phsmethods2 documentation built on Jan. 23, 2020, 12:18 a.m.