ts_summarise: Group-summarise a time series

View source: R/ts_summarise.R

ts_summariseR Documentation

Group-summarise a time series

Description

Group-summarise a time series

Usage

ts_summarise(x, grouping = "year", date_var = "Date", fun = "sum", ...)

Arguments

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


martinctc/tstoolbox documentation built on Nov. 20, 2024, 3:55 p.m.