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.
1 | completeMonths(data, dateCol = NULL)
|
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". |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.