gmba_lower_id_from_higher: Get a lower mountain range ID from a higher mountain range ID

View source: R/gmba_lower_id_from_higher.R

gmba_lower_id_from_higherR Documentation

Get a lower mountain range ID from a higher mountain range ID

Description

Get a certain lower GMBA Inventory v2.0 mountain range ID from a higher mountain range ID.

Within the GMBA Inventory v2.0 hierarchy, "lower" levels are spatially high, such as on the continental level. Consequently, "higher" levels are those of spatial detail, such as individual mountain ranges within a mountain system.

Usage

gmba_lower_id_from_higher(rangeid, lowerlevel_numeric, method)

Arguments

rangeid

String (character or numeric) of a single GMBA Inventory v2.0 mountain range ID

lowerlevel_numeric

A single number (as numeric), indicating what lower level to be given

method

Character string, the options are:

  • "parent" = a certain lower range of range ID

  • "steps" = number of lower levels from range ID

See the README for a visual explanation of the two methods

Value

Character string of the lower GMBA Inventory v2.0 mountain range ID associated with the input ID

Examples

## Not run: 
Europe <- gmba_lower_id_from_higher(11175, 2, method = "parent")
CentralUplands <- gmba_lower_id_from_higher(11175, 2, method = "steps")

## End(Not run)

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