![]() If cores > 1, a 'parallel' package cluster with that many cores is created. Either an actual function, or for the following, their name: "mean", "max", "min", "median", "sum", "modal", "any", "all", "prod", "which.min", "which.max", "sd" (sample standard deviation) and "std" (population standard deviation)Īdditional arguments passed to fun, such as na.rm=TRUE Or two integers (horizontal and vertical aggregation factor) or three integers (when also aggregating over layers)įunction used to aggregate values. Aggregation factor expressed as number of cells in each direction (horizontally and vertically). , cores=1, filename="", overwrite=FALSE, wopt=list())Īggregate(x, by=NULL, dissolve=TRUE, fun="mean", count=TRUE. Usage # S4 method for signature 'SpatRaster'Īggregate(x, fact=2, fun="mean". This either combines all geometries into one geometry, or it combines the geometries that have the same value for the variable(s) specified with argument by. You can also aggregate ("dissolve") a SpatVector. ![]() The value for the resulting cells is computed with a user-specified function. Aggregation groups rectangular areas to create larger cells.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |