Learn R Programming

speciesgeocodeR (version 1.0-4)

CalcRange: Calculate the Extent of Occurrence

Description

Uses the areaPolygon function of the geosphere package to calculate the extent of occurrence (EOO) for each species in the list, which can be used for criterion B of the IUCN red list classification.

Usage

CalcRange(x, mode =  "EOO", value = c("area", "shape"))

Arguments

x
data.frame, with 3 columns: 1 = species name, 2 = longitude coordinates, y = latitude coordinates.
mode
character string, setting the mode of calculation, currently only “EOO” is supported.
value
character string, setting the output value. If value = “area”: A data.frame with the EOO for each species in square kilometers; if value = “shape”, a list of convex hull polygons.

Value

“area”: A data.frame with the EOO for each species in square kilometers; if value = “shape”, a list of convex hull polygons.

Examples

Run this code
data(lemurs)
CalcRange(lemurs)

Run the code above in your browser using DataLab