Skip to contents

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.

See also

rename_model_code() for how model codes are standardized.

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"