GetElevation: Elevation Data for Multiple Species

Description Usage Arguments Details Value See Also Examples

View source: R/GetElevation.R

Description

A wrapper using the getData function of the raster package to get elevation information for each occurrence point in x.

Usage

1

Arguments

x

an object of the class data.frame, spgeoIN, spgeoOUT or a character string.

Details

If x is a data.frame, it must have 3 columns: species name, longitude and latitude. If x is a character string it can be the path to a tab delimited .txt file with three columns: species name, longitude and latitude. If x is a character string of species names, the function will use rgbif to download occurrence information from GBIF. In this case no data cleaning is performed, except from the ‘removeZeros’ option of rgbif.

Value

A vector of elevation values.

See Also

ReadPoints, SpGeoCod.

Examples

1
2
3
4
data(lemurs)
## Not run: 
GetElevation(lemurs)
## End(Not run)

speciesgeocodeR documentation built on May 30, 2017, 12:34 a.m.