Returns a merged dataframe with poverty and population data by state for specified age range.
Source:R/get-poverty-pop.R
getPovertyPop.Rd
This function retrieves poverty data and population data grouped by age from the Census API, filters the data and processes it to return a merged dataframe with relevant information.
Arguments
- key
A character string containing valid value of user's Census API key.
- vars_pov
A character vector that specifies the variables to be retrieved for poverty data.
- vars_pop
A character vector that specifies the variables to be retrieved for population data.
- filt_age
An integer vector of length two specifying the minimum and maximum age group to filter population data.