days_in_fmonth: Calculates number of days in a financial month.

View source: R/days_in_fmonth.R

days_in_fmonthR Documentation

Calculates number of days in a financial month.

Description

Used for calculating denominators in monthly scripts.

Usage

days_in_fmonth(month_no, fyear)

Arguments

month_no

numeric month of financial year, where 1 = April

fyear

4 character financial year where 2012 is year 2012/13

Value

numeric value for number of days in month

Examples

days_in_fmonth(1, 2017)
x <- days_in_fmonth(1, 2017)
class(x)
days_in_fmonth(11, 2012) # February on a leap year
days_in_fmonth(11, 2013) # February on an ordinary year

PublicHealthEngland/hcaidcs documentation built on Jan. 19, 2024, 8:38 a.m.