View source: R/extract_fin_year.R
extract_fin_year | R Documentation |
extract_fin_year
takes a date and extracts the
correct financial year in the PHS specified format from it.
extract_fin_year(date)
date |
A date which must be supplied with |
The PHS accepted format for financial year is YYYY/YY e.g. 2017/18.
A character vector of financial years in the form '2017/18'.
x <- lubridate::dmy(c(21012017, 04042017, 17112017))
extract_fin_year(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.