Description Usage Arguments Value
View source: R/Spatial_Functions.R
Code based on ‘sp:::aggregatePolyWeighted’ version 1.2.3 and modified to return complete information and not the area-weighted sum.
1 | reaggregate_shapefile(x, by, fields = NULL, code = NULL)
|
x |
A |
by |
A |
fields |
A character vector. If not |
code |
A vector. If not |
A list of length corresponding to the number of rectangles. Each element is a list which contains three items each
An integer vector. The number of unique values within the
rectangle for each layer of x
.
A list of numeric vectors or matrices. The sorted unique values as vector or matrix for each layer.
A list of numeric vectors. The weights of the
values
for each layer.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.