This function maps restriction-specific rarity types to restrictions "EER" and "Functional Rarity". It uses standardized restriction names created via rename_model_code()
.
Usage
map_est_types(model, label)
Arguments
- model
A character string representing the restriction (e.g., "GRFRPR", "GRGLFRFL").
- label
A character string representing the presence or absence of rarity for each dimension.
Value
A character string with the rarity type if a match exists to a established restriction.
Examples
map_est_types("GRFRPR", "GR+FR-PR+")
#> GR+FR-PR+
#> "Relict"
map_est_types("GRGLFRFL", "GR-GL-FR-FL-")
#> GR-GL-FR-FL-
#> "L"