Calculate the size of individual reserves in a solution.
reserve_sizes(x, areas, boundary_matrix)
x |
|
---|---|
areas |
|
boundary_matrix |
|
A numeric
vector containing the total area of each reserve.
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
.