aggregate-methods {surveillance} | R Documentation |
Method to aggregate the matrix slots of an sts object.
Either the time series is aggregated so a new sampling frequency of
nfreq
units per time slot is obtained – i.e as in
aggregate.ts
. The other option is to aggregate over all
ncol
units.
Note: The function is not 100% consistent with what the generic
function aggregate
does.
Warning: In case the aggregation is by unit the upperbound slot is set to NA. Furthermore the MAP object is left as is, but the object cannot be plotted anymore.
sts
by=="time"
. If
nfreq=="all"
then all time instances are summed.
returns an object of class sts
data(ha) has4 <- disProg2sts(ha) dim(has4) dim(aggregate(has4,by="unit")) dim(aggregate(has4,nfreq=13))