Skip to contents

Given a vector of US location codes (legacy FIPS code for states and territories, US for the US, the schema typically used in forecast hubs), return the corresponding state/territory two-letter USPS short names (e.g. MA, TX, PR).

Usage

us_loc_code_to_abbr(location_codes)

Arguments

location_codes

vector of location codes

Value

vector of the same length recoded as USPS two letter abbreviations.