Download and standardize a single NYC boundary dataset
Source:R/process_dataset.R
process_dataset.RdDownloads a geographic boundary dataset, reads it into an sf object,
reprojects to EPSG:4326, and standardizes the columns to a common schema
(id, name_col, optionally name_alt, and geometry).
Usage
process_dataset(
dataset_info,
auto_detect_latest = TRUE,
preferred_cycle = NULL,
external_data_dir = "data/external"
)Arguments
- dataset_info
A single-row tibble or list with elements
id,dataset_name,url,name_col,name_alt, andsource_type.- auto_detect_latest
Logical. Passed to
resolve_dcp_cycle()for DCP zip sources. DefaultTRUE.- preferred_cycle
Optional cycle letter passed to
resolve_dcp_cycle().- external_data_dir
Path to a directory containing local fallback files (e.g.,
ibz.zip). Default"data/external".