Description Usage Arguments Details Value Author(s)
View source: R/RL_subset_acceptable.R
Subset data to only retain desired suitabilities and major importances. Other suitabilities/major importances are recoded as NA. Rows containing only NA values can then be removed.
1 2 3 4 5 6 | RL_subset_acceptable(
x,
acceptable_suitabilities = NA,
acceptable_importances = NA,
na.rm = TRUE
)
|
x |
A wide format dataframe with one column per habitat category. As output by RL_fetch(). |
acceptable_suitabilities |
(optional) A vector of suitabilities deemed acceptable. Must be in the form |
acceptable_importances |
(optional) A vector of major importances deemed acceptable. Must be in the form |
na.rm |
(optional) Logical. If a row has all habitats recoded to NA, should it be removed? Default is TRUE. |
See suitability
and major_importance
for code values corresponding to each suitability/major importance name.
A dataframe in wide format (one column per habitat type).
Matt Lewis, matthewlewis896@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.