terrestrialGBIF: Get GBIF data for a terrestrial species

View source: R/terrestrialGBIF.R

terrestrialGBIFR Documentation

Get GBIF data for a terrestrial species

Description

Function to extract GBIF data and save it to file. Output further does not contain any outliers and only files on land.

Usage

terrestrialGBIF(
  species = "Equus quagga",
  genus = NULL,
  limit = 50000,
  hasCoordinate = TRUE,
  path = getwd(),
  overwrite = FALSE
)

Arguments

species

Latin name of species.

genus

Genus of species

limit

Maximum number of records to obtain from GBIF. Note that there is a hard maximum of 200,000, which is calculated as the limit+start, so start=199,000 and limit=2000 won't work

hasCoordinate

logical. Return only occurence records with lat/long data (TRUE) or all records (FALSE, default).

path

File path, where to save the species data

overwrite

logical. If TRUE, fill will be overwritten if it exists.

Value

SpatialPointsDataFrame with the occurrence of the species

Examples

## Not run: 
terrestrialGBIF(species="Equus quagga", limit=100)

## End(Not run)

RS-eco/climateNiche documentation built on Feb. 21, 2023, 5:25 a.m.