Description Usage Arguments Details Value Author(s)
Rename columns to new names from look-up table - e.g. iucn_1_1 becomes 110. Then optionally replaces suitability/major importance values with the column name or 1. Typically used to convert between habitat classes and land cover classes.
1 2 3 4 5 6 7 | RL_crosswalk(
x,
lut = redlistManipulatr::hab_conversion_lut,
new.code.colname = NULL,
old.code.colname = NULL,
recode = "no"
)
|
x |
A wide-format |
lut |
(optional) A |
new.code.colname |
(optional) Character. What is the name of the column of |
old.code.colname |
(optional) Character. What is the name of the column of |
recode |
(optional) Character. Should values be recoded? "no" gives the most favourable suitability-major importance combinations, "one" codes all habitats with suitability-major importance values as 1, "colname" codes all habitats with suitability-major importance values as the column name value (the same as the new values in lut). Defaults to "no". |
Use should follow that of RL_subset_acceptable() if only some habitat suitabilities/major importances are wanted and cell values are being recoded.
The default for lut
is the hab_conversion_lut
dataset which just converts habitat classes to integer values - e.g. 1.1 -> 110; 9.8.1 -> 981.
A dataframe
in wide format (one column per new value of 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.