aggregate_draws_to_polygons_validation | R Documentation |
Data validation for aggregate_draws_to_polygons
aggregate_draws_to_polygons_validation(
draws_matrix,
aggregation_table,
aggregation_cols,
method,
z_dimension,
z_dimension_name,
weighting_raster,
na.rm
)
draws_matrix |
|
aggregation_table |
data.table::data.table Aggregation table linking pixels to
polygon identifiers, created using |
aggregation_cols |
(character vector, default 'polygon_id') Polygon identifiers to use for aggregation. |
method |
(character, default 'mean') Aggregation method: one of 'mean', 'sum', 'weighted.mean', or 'weighted.sum'. |
z_dimension |
(vector, default NULL) If passing a |
z_dimension_name |
(default 'z') The field name for the "z" dimension
corresponding to each set of estimates contained in |
weighting_raster |
(terra::SpatRaster, default NULL) The relative weighting of each whole pixel to the overall polygon value, for example, if calculating a population-weighted mean. |
na.rm |
(bool, default TRUE) How to handle NA values in |
Errors if checks fail; silently passes if checks pass
aggregate_draws_to_polygons
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.