Read cached IPUMS data
read_ipums_cached.Rd
Read cached IPUMS data
Arguments
- filename
The name of the file (not the full file path)
- download_directory
A relative path specifying where to download the data
- extract_definition
A
define_extract_micro()
ordefine_extract_agg()
object- refresh
If true, execute the API query, even if data are already stored locally. Defaults to FALSE
Examples
if (FALSE) { # \dontrun{
read_ipums_cached(
filename = "acs_insurance_race_2022_1yr_repweights",
download_directory = "data",
extract_definition = define_extract_micro(
collection = "usa",
description = "2022 ACS 1-year sample with replicate weights - insurance and race",
samples = c("us2022a"),
variables = list(
"HCOVANY",
var_spec("RACE", case_selections = c("1", "2")),
"REPWT"),
refresh = FALSE))
} # }