dismo (version 0.7-11)

gbif: Data from GBIF

Description

This function downloads species occurence records from the Global Biodiversity Information Facility (http://www.gbif.org{GBIF}) data portal. You can download either a single species (if you append a '*' to the species name) or a subspecies of comparable level. You can download the data for an entire genus by using species='*'. Before using this function, please first check the GBIF http://data.gbif.org/terms.htm{data use agreement}.

Usage

gbif(genus, species="", geo=TRUE, sp=FALSE, removeZeros=TRUE, download=TRUE, getAlt=TRUE, feedback=3)

Arguments

genus
Character. genus name
species
Character. species name. Use '*' to download the entire genus. Append '*' to the species name to get all sub-taxa
geo
Logical. If TRUE, only records that have a georeference (longitude and latitude values) will be downloaded
sp
Logical. If TRUE, geo will be set to TRUE and a SpatialPointsDataFrame will be returned
removeZeros
Logical. If TRUE, all records that have a latiude OR longitude of zero will be removed if geo==TRUE, or set to NA if geo==FALSE. If FALSE, only records that have a latiude AND longitude that
download
Logical. If TRUE, records will be downloaded, else only the number of records will be shown
getAlt
Logical. If TRUE, elevation data (4 character variables) will be processed into a single new numerical variable
feedback
Integer. Lower values give less feedback (0-no messages; 3-all messages)

Value

  • data frame

References

http://data.gbif.org/occurrences/

Examples

Run this code
# note the differences:

gbif('solanum', download=F)
gbif('solanum', '*', download=F)
gbif('solanum', 'acaule', download=F)
gbif('solanum', 'acaule f. acaule', download=F)
gbif('solanum', 'acaule*', download=F)

gbif('Batrachoseps', '*' , geo=F, down=F)
gbif('Batrachoseps', '*' , geo=T, down=F)
gbif('Batrachoseps', 'luciae', geo=T, down=F)
g <- gbif('Batrachoseps', 'luciae', geo=T)
plot(g$lon, g$lat)

gs <- gbif('Batrachoseps', 'luciae', sp=T)
plot(gs)

Run the code above in your browser using DataLab