Skip to contents

Downloads and loads the Commission for Environmental Cooperation (CEC) North America Level 1 Ecoregion boundaries as a spatial object.

Usage

get_nal1eco(
  output = c("sf", "vect", "terra"),
  cache = FALSE,
  verbose = TRUE
)

Arguments

output

character(1) class of the returned spatial object. Either "sf" (default) or "vect" / "terra" for a terra::SpatVector.

cache

logical(1) or character(1). Controls where the ZIP is cached. FALSE (the default) uses a temporary directory that is cleaned up when the R session ends. TRUE uses the platform user cache directory (tools::R_user_dir("fireR", "cache")). Supply a directory path as a string to specify a custom location.

verbose

logical(1) print progress messages.

Value

An sf object or terra::SpatVector of North America Level 1 Ecoregion polygons.

Details

The Commission for Environmental Cooperation (CEC) North American ecoregion framework divides the continent into hierarchical levels based on similarity of ecosystems and the type, quality, and quantity of environmental resources. Level 1 represents the broadest ecological divisions of the continent. Data are sourced from the US EPA / CEC ecoregion mapping programme.

Examples

if (FALSE) { # \dontrun{
eco <- get_nal1eco()
eco_terra <- get_nal1eco(output = "vect")
} # }