create_eligible_PU_set | R Documentation |
When wrapping a species distribution around a Xu biodiversity problem, the first instance of any new species is added to the solution set of the original Xu problem that is being wrapped. However, if more than one instance of the new species is being added in the wrapped problem, the extra instances could go in a) just the new planning units outside the original Xu problem added for the wrapper, or b) in both the original solution set and the newly added planning units. This function builds that target set of planning units based on the value of the dep_set_PUs_eligible flag passed to it.
create_eligible_PU_set(Xu_dep_set, extra_PUs, dep_set_PUs_eligible)
Xu_dep_set |
integer vector of planning unit IDs for the solution set of the original Xu problem being wrapped around |
extra_PUs |
integer vector of plannning unit IDs being added to the original Xu problem to make the wrapped problem |
dep_set_PUs_eligible |
boolean indicating whether new species instances can be added to the original Xu problem's solution set in addition to the adding them to the newly added planning units; TRUE implies new species instances can be added to both sets; FALSE implies new species instances can only be added to the newly added planning units |
set of planning unit IDs where new species can be placed
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.