ordered_m_y: Add ordered month and calendar year to a data frame

View source: R/ordered_m_y.R

ordered_m_yR Documentation

Add ordered month and calendar year to a data frame

Description

Function to add vector of ordered month-year factor to a dataframe. To be used for preparation of monthly outputs.

Usage

ordered_m_y(data, specimen_date)

Arguments

data

A data frame

specimen_date

A specimen date, in date format, as part of the data frame

Value

A dataframe with an additional column giving and ordered month in format "January 2015", ...

See Also

ordered_fin_qtr

Examples

## Not run: 
# This is failing R cmd check because can't find dat and I don't understand why
# so excluding from examples for now. This should run fine if copied-and-pasted
ordered_m_y(data = dat, specimen_date = spec_date)

## End(Not run)

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