View source: R/aggregate.grid.R
aggregate.grid | R Documentation |
The aggregation functions are based on the S3 method for zoo
objects,
but takes care of extra house keeping, such as attributes with meta data.
Use given longitude-latitude coordinates to find the grid-boxes which are within these bins and
aggregate them as with a data.frame object. This is a bit similar to regrid, but does not
use bilinear interpolation. but the mean of grid boxes within a larger grid-box.
Rasmus E. Benestad
## S3 method for class 'grid'
aggregate(x, ..., is, FUN = "mean", na.rm = TRUE, verbose = FALSE)
x |
A |
... |
additional arguments |
is |
A list or |
FUN |
A function, e.g., 'sum' or 'mean' |
na.rm |
a boolean; if TRUE ignore NA, see |
verbose |
a boolean; if TRUE print information about progress |
aggregate.grid
is used for aggregating spatial statistics of a finer grid-mesh onto a coarser grid.
The call returns a field object
R.E. Benestad
aggregate.area regrid
test.aggregate.grid()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.