to_period | R Documentation |
data.frame
to a different frequencyconvert time series data in a data.frame
to a different frequency
to_period( dt_data, period = c("daily", "weekly", "monthly", "quarterly", "annual"), aggregate_by = c("last", "sum", "avg", "median") )
dt_data |
date data to aggregate to frequency specified in argument |
period |
string indicating the frequency to convert data to |
aggregate_by |
string indicating how to aggregate data |
data.frame
or date vector depending on argument dt_data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.