Downloads and loads US EPA Level 3 Ecoregion boundaries as a spatial object, optionally including state boundaries.
Usage
get_usl3eco(
state = FALSE,
output = c("sf", "vect", "terra"),
cache = FALSE,
timeout = 3600,
verbose = TRUE,
dry_run = FALSE,
overwrite = FALSE
)Arguments
- state
logical(1)whenTRUE, the dataset with state boundaries dissolved into the ecoregion polygons is returned. Defaults toFALSE.- output
character(1)class of the returned spatial object. Either"sf"(default) or"vect"/"terra"for aterra::SpatVector.- cache
logical(1)orcharacter(1). Controls where the ZIP is cached.FALSE(the default) uses a temporary directory that is cleaned up when the R session ends.TRUEuses the platform user cache directory (tools::R_user_dir("fireR", "cache")). Supply a directory path as a string to specify a custom location.- timeout
numeric(1)download timeout in seconds. Default is3600.- verbose
logical(1)print progress messages.- dry_run
logical(1)ifTRUE, do not download the file but instead return the path where it would be saved. Defaults toFALSE.- overwrite
logical(1)re-download whenTRUE, deleting any cached ZIP first; defaults toFALSE.
Value
An sf object or terra::SpatVector of US Level 3
Ecoregion polygons. (Or the file path invisibly if dry_run = TRUE).
About US EPA Ecoregions
The US EPA ecoregion framework classifies areas of the United States by similarity of ecosystems and environmental resources. Level 3 provides finer subdivisions of the Level 2 regions and is widely used for environmental assessment, monitoring, and reporting at regional scales. Data are sourced from the US EPA Office of Research and Development.