Skip to contents

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

Usage

abs_abbreviate_states(state_names)

Arguments

state_names

vector of state names in long form

Value

shortened state names

Examples

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