View source: R/api_define_extract.R
define_extract_nhgis | R Documentation |
Define the parameters of an IPUMS NHGIS extract request to be submitted via the IPUMS API.
This function has been deprecated in favor of define_extract_agg()
,
which can be used to define extracts for both IPUMS aggregate data
collections (IPUMS NHGIS and IPUMS IHGIS). Please use that function instead.
All NHGIS extract request parameters supported by define_extract_nhgis()
are supported by define_extract_agg()
.
Learn more about the IPUMS API in vignette("ipums-api")
and
NHGIS extract definitions in vignette("ipums-api-agg")
.
define_extract_nhgis(
description = "",
datasets = NULL,
time_series_tables = NULL,
shapefiles = NULL,
geographic_extents = NULL,
breakdown_and_data_type_layout = NULL,
tst_layout = NULL,
data_format = NULL
)
description |
Description of the extract. |
datasets |
List of dataset specifications for any
datasets
to include in the extract request. Use |
time_series_tables |
List of time series table specifications for any
time series tables
to include in the extract request. Use |
shapefiles |
Names of any shapefiles to include in the extract request. |
geographic_extents |
Vector of geographic extents to use for
all of the Use |
breakdown_and_data_type_layout |
The desired layout
of any
Required if any |
tst_layout |
The desired layout of all
Required when an extract definition includes any |
data_format |
The desired format of the extract data file.
Note that by default, Required when an extract definition includes any |
An object of class nhgis_extract
containing
the extract definition.
get_metadata_catalog()
to find data to include in an extract definition.
submit_extract()
to submit an extract request for processing.
save_extract_as_json()
and define_extract_from_json()
to share an
extract definition.
# Previously, you could create an NHGIS extract definition like so:
nhgis_extract <- define_extract_nhgis(
description = "Example NHGIS extract",
datasets = ds_spec(
"1990_STF3",
data_tables = "NP57",
geog_levels = c("county", "tract")
)
)
# Now, use the following:
nhgis_extract <- define_extract_agg(
collection = "nhgis",
description = "Example NHGIS extract",
datasets = ds_spec(
"1990_STF3",
data_tables = "NP57",
geog_levels = c("county", "tract")
)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.