dts_aggregate | R Documentation |
Aggregate
dts_aggregate(
x,
dtt = "DateTime",
colname = dts_colnames(x),
units = dttr2::dtt_units(x[[dtt]]),
.dts_fun = mean,
...
)
x |
A dts data frame |
dtt |
A string specifying the column with the Date or POSIXct values. |
colname |
A character vector specifying the column(s) with the other values. |
units |
A string of the units. |
.dts_fun |
A function which returns a scalar. |
... |
Optional Additional arguments passed to .dts_fun. |
A data frame
dts_aggregate(dts_data, units = "years", na.rm = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.