"over"(x, y, returnList = FALSE, fn = NULL, ...)
"over"(x, y, returnList = FALSE, fn = NULL, ...)
"aggregate"(x, by, FUN = mean, ..., simplify = TRUE)x are aggregated
(this can be a Spatial* geometry, or a ST* geometry), or
temporal aggregation, such as "month", "10 minutes", or a function such
as as.yearmon; see aggregate.zoo. In case x
is of class STFDF, argument by may be "time" or "space", in
which cases aggregation over all time or all space is carried out.Spatial or xts) object will be returned length(x), or a data.frame with number
of rows equal to length(x). If returnList is FALSE,
a vector with indices of y for each geometry (point, grid
cell centre, polygon or lines x time point) in x. if returnList is
TRUE, a list of length length(x), with list element i
the vector of indices of the geometries in y that correspond
to the $i$-th geometry in x.Function aggregate.ST aggregates the attribute values of x
over the geometry (space, time, or space-time) of by, using
aggregation function FUN.For the matching of time intervals, see timeMatch.For setting, or retrieving whether time represents intervals, see
timeIsInterval.
x matching to y. Only if
timeIsInterval(x) == TRUE, intervals are sought. In that case,
time intervals start at the time instance of a record, and end at
the next. The last time interval length is set to the interval length
of the one-but-last (non-zero) interval. In case of a single time
instance for y, its interval is right-open. vignette('sto'), vignette('over'),
timeMatch, timeIsInterval