date_to_fmonth: date_to_fmonth

View source: R/date_to_fmonth.R

date_to_fmonthR Documentation

date_to_fmonth

Description

Convert dates to months of financial year

Usage

date_to_fmonth(x)

Arguments

x

a date value

Value

a numeric value for the month of financial year, e.g. 1 for April, and 12 for March

Examples

date_to_fmonth(lubridate::dmy("01-01-2018"))
date_to_fmonth(lubridate::dmy("01-02-2018"))
date_to_fmonth(lubridate::dmy("01-03-2018"))
date_to_fmonth(lubridate::dmy("01-04-2018"))
date_to_fmonth(lubridate::dmy("01-12-2018"))

publichealthengland/hcaidcs documentation built on Jan. 17, 2024, 1:34 p.m.