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 getStateAbbreviation is being called. Defaults to NULL.

type

Either Abbreviation or Long indicating whether the desired output is an Abbreviation (long form name is supplied) or the long form name (abbreviation is supplied). The default is Abbreviation.

Value

Returns a character string.

Examples

getStateAbbreviation("IDAHO") ## ID
#> [1] "ID"
getStateAbbreviation("ID", type="Long") ## Idaho
#> [1] "Idaho"