normalise_state_names: Normalise state names from abbreviations

View source: R/utils.R

normalise_state_namesR Documentation

Normalise state names from abbreviations

Description

Expand abbreviations like "NSW" to "New South Wales", and normalise to title capitalisation. Entries that don't match any state name or abbreviation are left untouched.

Usage

normalise_state_names(names)

Arguments

names

Character vector of state names.

Value

Vector of the same size as the input, but with the normalised state names.

Examples

normalise_state_names(c("nsw", "VIC", "overseas", "Queensland"))

nswgeo documentation built on May 31, 2023, 6:46 p.m.