unit_codes_to_names: Converts unit codes to full unit (park) names

View source: R/unit_code_names.R

unit_codes_to_namesR Documentation

Converts unit codes to full unit (park) names

Description

unit_code_to_names takes a single unit code or vector of unit codes and returns a data frame of full unit names using a public IRMA API. For example if given the code "ROMO" the function will return "Rocky Mountain National Park".

Usage

unit_codes_to_names(unit_code)

Arguments

unit_code

string or list of strings consisting of (typically) four-letter unit codes.

Value

a data frame consisting of a single column of full park names

Examples

## Not run: 
 unit_codes_to_names("ROMO")
 unit_codes_to_names(c("ROMO", "GRYN"))
 
## End(Not run)

nationalparkservice/IMDQC documentation built on March 29, 2025, 10:54 p.m.