load_ranges: Load seasonal eBird Status and Trends range polygons

View source: R/load.R

load_rangesR Documentation

Load seasonal eBird Status and Trends range polygons

Description

Range polygons are defined as the boundaries of non-zero seasonal relative abundance estimates, which are then (optionally) smoothed to produce more aesthetically pleasing polygons using the smoothr package.

Usage

load_ranges(path, resolution = c("mr", "lr"), smoothed = TRUE)

Arguments

path

character; directory that the Status and Trends data for a given species was downloaded to. This path is returned by ebirdst_download() or get_species_path().

resolution

character; the raster resolution from which the range polygons were derived.

smoothed

logical; whether smoothed or unsmoothed ranges should be loaded.

Value

An sf update containing the seasonal range boundaries, with each season provided as a different feature.

Examples

## Not run: 
# download example data
path <- ebirdst_download("example_data")
# or get the path if you already have the data downloaded
path <- get_species_path("example_data")

# load smoothed ranges
# note that only low res data are provided for the example data
ranges <- load_range(path, resolution = "lr")

## End(Not run)

CornellLabofOrnithology/stemhelper documentation built on Feb. 5, 2023, 9:59 a.m.