get_cps_data_state.Rd
This function fetches CPS data for a specific state from the Census API.
get_cps_data_state(
year_range,
variable_list,
census_api_key = get_key(),
state_code = "32"
)
A vector of years for which data is to be fetched.
A list of variables to be included in the fetched data.
Your Census API key. Defaults to the key stored in the system environment "CENSUS_API_KEY".
A character string specifying the state FIPS code for which data should be fetched. Default is "32", which is the FIPS code for Nevada. Only accepts one state code at a time.
A data frame containing the fetched CPS data for the specified state.