Learn R Programming

ebirdst (version 2.2021.3)

load_ranges: 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)

Value

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

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.

Examples

Run this code
if (FALSE) {
# 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")
}

Run the code above in your browser using DataLab