Description Usage Arguments Examples
This function will return a dataframe with fiscal period information added. It will only accept valid date fields (date, POSIXct, POSIXlt)
1 | add_periods(df, date_col)
|
df |
dataframe you want add information to |
date_col |
field on which all calculations will be made |
1 2 3 4 5 6 7 | add_periods(myydataframe, "createddate_col")
will return mydataframe with the following new columns:
createddate_col_period
createddate_col_qtr
createddate_col_year
createddate_col_year_qtr
createddate_col_month_end
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.