codeToState: Convert state codes to state nnames

Description Usage Arguments Details Value See Also

View source: R/MazamaSpatialUtils.R

Description

Converts a vector of ISO 3166-2 alpha-2 state codes to the corresponding English names.

Usage

1
2
codeToState(stateCodes, countryCodes = NULL,
  dataset = "NaturalEarthAdm1")

Arguments

stateCodes

vector of state codes to be converted

countryCodes

ISO-3166-1 alpha-2 country codes the state might be found in

dataset

name of dataset containing state-level identifiers

Details

For this function to work, you must first run initializeSpatialData() to download, convert and install the necessary spatial data.

Value

A vector of English state names or NA.

See Also

convertNaturalEarthAdm1


MazamaSpatialUtils documentation built on Sept. 29, 2019, 1:03 a.m.