Learn R Programming

amadeus (version 1.2.2)

process_ecoregion: Process ecoregion data

Description

The process_ecoregion function imports and cleans raw ecoregion data, returning a SpatVector object.

Usage

process_ecoregion(path = NULL, extent = NULL, ...)

Value

a SpatVector object

Arguments

path

character(1). Path to Ecoregion Shapefiles

extent

numeric(4) or SpatExtent giving the extent of the raster if NULL (default), the entire raster is loaded

...

Placeholders.

Author

Insang Song

Examples

Run this code
## NOTE: Example is wrapped in `\dontrun{}` as function requires a large
##       amount of data which is not included in the package.
if (FALSE) {
ecoregion <- process_ecoregion(
  path = "./data/epa_ecoregion.gpkg"
)
}

Run the code above in your browser using DataLab