powered by
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 )
KML data as text or sf object (if parse_sf = TRUE)
Dataset ID
Time period selection (same as fetch_nomis)
Specific date selection (alternative to time)
Geography code(s) to filter
Column names to include
Remove missing values if TRUE
Additional query parameters (measures, sex, etc.)
If TRUE and sf is available, parse to sf object
# \donttest{ spatial_data <- fetch_spatial( "NM_1_1", time = "latest", geography = "TYPE480", measures = 20100, sex = 7 ) # }
Run the code above in your browser using DataLab