completeMonths: Fill in missing months in a vector or dataframe column. If a...

Description Usage Arguments

View source: R/utils.R

Description

Fill in missing months in a vector or dataframe column. If a dataframe is supplied the extra columns will be filled in with NA. Dates should be a date object.

Usage

1
completeMonths(data, dateCol = NULL)

Arguments

data

A vector or dataframe of dates in yyyy-mm-dd format. Filled in dates will be for the first of the month.

dateCol

if a dataframe is supplied, what is the column name of the dates variable. Defaults to "month".


FredHutch/coopMetrics documentation built on June 7, 2021, 7:45 a.m.