View source: R/utils_spatial_misc.R
reserve_sizes | R Documentation |
Calculate the size of individual reserves in a solution.
reserve_sizes(x, areas, boundary_matrix)
x |
|
areas |
|
boundary_matrix |
|
For spatial uploads (shapefile) with many planning units, building
boundary data can result in a std::bad_alloc error. To avoid this, the
user can skip generating a boundary matrix on the new_dataset_from_auto
method. For these scenarios, reserve sizes can not be calculated when the
boundary_matrix
is set to NA
.
A numeric
vector containing the total area of each reserve.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.