View source: R/aggregateSpatial.R
| aggregateSpatial.uncompiled | R Documentation | 
Spatially aggragte all gridcells of a Field (or a data.table assuming it has columns "Lon" and "Lat"). Can use area-weighting to take into account the different areas of gridcells (even though they are constant in Lon, Lat)
aggregateSpatial.uncompiled(x, method = "mean", verbose = FALSE, ...)
| x | Field (or data.table) to be averaged | 
| method | The method with which to spatially aggregate. Can be "weighted.mean", "w.mean", "mean", "weighted.sum", "w.sum", "sum", "mode", "median", "max", "min", "sd", "var" and "cv" (= coefficient of variation: sd/mean). | 
| verbose | If TRUE give some progress update about the averaging. | 
| ... | Extra arguments passed to addArea function if a weighted method is being used. Note in particular the lon_centres and lat_centres arguments if you are using a regular but sparsely populated grid. | 
A Field or data.table depending on the input object
Matthew Forrest matthew.forrest@senckenberg.de
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.