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.

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

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")
}