spRecords: spRecords

Description Usage Arguments Value Author(s) Examples

View source: R/spRecords_function.R

Description

Gets occurrence data of species from databases and turn into a SpatialPoints object#'

Usage

1
2
spRecords(sp, ex = NULL, dataBase = c('GBIF', 'VertNet', 'BISON'),
progress = FALSE)

Arguments

sp

a vector containing the names of the species.

ex

The extent of the output Spatial points. Should be an extent object or a list containing extent objects.

dataBase

vector cortaining which databases the function should search for occurrence data.

Value

spRecords returns a list containing SpatialPoints objects of the occurrence of the species.

Author(s)

Daniel Gonçalves-Souza & Thaís Dória

Examples

1
2
3
name <- c('Orcinus orca', 'Bothrops jararaca')
area <- list(extent(c(-179.8733, 79.3333, -8.6333, 8.65083 )), NULL)
occ.shps <- spRecords(sp = name, ex = area, dataBase = c('GBIF', 'BISON'))

thaisdoria/habitaR documentation built on Dec. 18, 2020, 8:09 p.m.