Columns of numeric data in
sts$data are grouped by
unit and then
Columns with non-numeric data are summarized by just picking the first
occurrence in each
unit. This preserves the utility of columns
containing repeated metadata.
The most typical use case is creating daily averages where each day begins at
midnight. Day boundaries are calculated using the specified
NULL, the time zone found in
timezone = NULL, the default, results in "local time" date
filtering which is the most common use case.
sts_summarize( sts, timezone = NULL, unit = c("day", "week", "month", "year"), FUN = NULL, ..., minCount = NULL )
Olson timezone used to interpret dates.
Unit used to summarize by (e.g. "day").
Function used to summarize time series.
Additional arguments to be passed to
na.rm = TRUE).
Minimum number of valid data records required to calculate
summaries. Time periods with fewer valid records will be assigned
An sts time series object containing daily (or other)
(A list with