"sts" Object Over Time or Across Units
Aggregate the matrix slots of an
Either the time series is aggregated so a new sampling frequency of
nfreq observations per year is obtained (i.e., as in
aggregate.ts), or the aggregation is over all
# S4 method for sts aggregate(x, by = "time", nfreq = "all", ...)
an object of class
a string being either
new sampling frequency for
nfreq="all"then all time points are summed.
unused (argument of the generic).
Aggregation over units fills the upperbound slot with
NAs and the
map slot is left as-is, but the object
cannot be plotted by unit any longer.
populationFrac slot is aggregated just like
Population fractions are recomputed if and only if
x is no
multinomialTS and already contains population fractions.
This might not be intended, especially for aggregation over time.