dataset <- ds_spec(
"2013_2017_ACS5a",
data_tables = c("B00001", "B01002"),
geog_levels = "state"
)
tst <- tst_spec(
"CW5",
geog_levels = c("county", "tract"),
years = "1990"
)
# Use variable specifications in an extract definition:
define_extract_agg(
"nhgis",
description = "Example extract",
datasets = dataset,
time_series_tables = tst
)
# IHGIS datasets need a `tabulation_geographies` specification:
define_extract_agg(
"ihgis",
description = "Example extract",
datasets = ds_spec(
"AL2001pop",
data_tables = "AL2001pop.ADF",
tabulation_geographies = c("AL2001pop.g0", "AL2001pop.g1")
)
)
Run the code above in your browser using DataLab