Skip to contents

Given a full name (Title Case) of an Australian State or Territory, produces the abbreviated state name.

Usage

abbreviate_states(state_names)

Arguments

state_names

vector of state names in long form

Value

shortened state names

Examples

abbreviate_states("Victoria")
#> [1] "VIC"
abbreviate_states(c("Victoria", "Queensland"))
#> [1] "VIC" "QLD"