getStateAbbreviation {SGP} | R Documentation |
Function for converting state/organization abbreviations to long form and back.
Description
The function getStateAbbreviation converts state/organization abbreviations to their long form and back. For example ID gets converted to Idaho.
Usage
getStateAbbreviation(
supplied.name,
SGPfunction=NULL,
type="ABBREVIATION")
Arguments
supplied.name |
A character string state/organization abbreviation or long form name. |
SGPfunction |
SGP package function from which |
type |
Either |
Value
Returns a character string.
Author(s)
Damian W. Betebenner dbetebenner@nciea.org
Examples
getStateAbbreviation("IDAHO") ## ID
getStateAbbreviation("ID", type="Long") ## Idaho
[Package SGP version 2.1-0.0 Index]