Learn R Programming

gecko (version 1.0.2)

spectre.points: Get SPECTRE data from points.

Description

Downloads SPECTRE layer data according to a selection of points.

Usage

spectre.points(index, points)

Value

data.frame or matrix. Contains both the points given as well as their respective values for each layer specified.

Arguments

index

numeric. A vector of integers specifying the layers. Refer to the documentation of gecko::spectre.citations() for a list of available layers.

points

data.frame or matrix. Containing point data coordinates, organized in longitude, latitude (longlat).

Examples

Run this code
if (FALSE) {
localities = gecko.data("records")
localities = localities[localities$species == "Hogna maderiana", 2:3]
local_threats = spectre.points(c(2,3), localities)
}

Run the code above in your browser using DataLab