dismo (version 0.5-11)

gbif: Data from GBIF

Description

This functions downloads species occurence records from the GBIF data portal. You can download either a single species or an entire genus by using species='*'

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
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
#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)

Run the code above in your browser using DataCamp Workspace