Map location format strings to corresponding us location lookup table column names.
Source:R/recode_locations.R
to_us_location_table_column.Rd
Convert a location format string to the name of the corresponding column in us_location_table, raising an error if an unknown format is provided.
Arguments
- location_format
the format string to convert. Valid values are: -
"abbr"
or"short_name"
: USPS 2-letter abbreviation"code"
or"hub"
: Legacy 2-digit FIPS code for states and territories,US
for the US as a whole, the schema typically used in forecast hubs."long_name"
or"name"
: Full location name, as a string.
Value
the corresponding column name in us_location_table.