Get FIPS or CBSA codes from county or metropolitan area locations

name_to_fips(data, hub = c("US", "ECDC"))

Arguments

data

a vector of strings for fips code, CBSA codes, location names such as "Hampshire County, MA", "Alabama", "United Kingdom". A US county location names must include state abbreviation.

hub

character vector, where the first element indicates the hub from which to load forecasts. Possible options are "US", "ECDC" and "FluSight"

Value

A vector of FIPS or CBSA codes