get_cps_data_all_states.Rd
Fetches CPS (Current Population Survey) data across all states from the Census API.
get_cps_data_all_states(
year_range,
variable_list,
state_filter = FALSE,
census_api_key = get_key()
)
A vector of years for which data is to be fetched.
A list of variables to be included in the fetched data.
A character vector specifying which states' data should be retrieved. If set to FALSE (default), data for all states will be fetched.
A character string representing the user's API key for accessing the Census API. By default, it retrieves the API key set as the "CENSUS_API_KEY" environment variable.
A data frame containing the fetched CPS data.