ts_summarise | R Documentation |
Group-summarise a time series
ts_summarise(x, grouping = "year", date_var = "Date", fun = "sum", ...)
x |
Data frame to be passed through |
grouping |
Method of grouping / rounding used for dates. See 'lubridate::floor_date()' |
date_var |
Character string specifying variable name with the date variable |
fun |
Character string specifying function for summarising. Defaults to sum |
... |
Additional arguments |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.