gmba_ids_from_countries: Get mountain range IDs from country codes

View source: R/gmba_ids_from_countries.R

gmba_ids_from_countriesR Documentation

Get mountain range IDs from country codes

Description

Get GMBA Inventory v2.0 mountain range IDs that are within one or more ISO-3 country codes

Usage

gmba_ids_from_countries(iso, range_selection = "all", manual = NULL)

Arguments

iso

Character vector of one or more ISO-3 country code(s). If codes are not known, check Wikipedia or use the R package countrycode to convert country names

range_selection

Character string, the options are:

  • "all" = all level ranges, cross-scale (returns lists of ids!) (default)

  • "basic" = basic mountain ranges only

  • "300" = ranges included in the 300 pre-selection

  • "100" = ranges included in the 100 pre-selection

  • "level1"-"level10" = ranges pertaining to the respective level of the inventory hierarchy

  • "manual" = range IDs provided with manual

manual

Character string containing the IDs of manually selected mountain ranges. Only needed when range_selection is set to manual. Default is set to NULL

Value

Character vector of the GMBA Inventory v2.0 mountain range IDs that are located within the input country codes

Examples

## Not run: 
rangeid <- gmba_ids_from_country("che")
rangeids <- gmba_ids_from_country(c("che", "deu"))

## End(Not run)

GMBA-biodiversity/gmbaR documentation built on Feb. 13, 2025, 8:44 a.m.