| fetch_spatial | R Documentation |
Downloads data in KML format with spatial boundaries.
fetch_spatial(
id,
time = NULL,
date = NULL,
geography = NULL,
select = NULL,
exclude_missing = FALSE,
...,
parse_sf = TRUE
)
id |
Dataset ID |
time |
Time period selection (same as fetch_nomis) |
date |
Specific date selection (alternative to time) |
geography |
Geography code(s) to filter |
select |
Column names to include |
exclude_missing |
Remove missing values if TRUE |
... |
Additional query parameters (measures, sex, etc.) |
parse_sf |
If TRUE and sf is available, parse to sf object |
KML data as text or sf object (if parse_sf = TRUE)
spatial_data <- fetch_spatial(
"NM_1_1",
time = "latest",
geography = "TYPE480",
measures = 20100,
sex = 7
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.