Description Usage Arguments Details Value See Also Examples
A wrapper using the getData
function of the raster
package to get elevation information for each occurrence point in x.
1 | GetElevation(x)
|
x |
an object of the class data.frame, spgeoIN, spgeoOUT or a character string. |
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.
A vector of elevation values.
1 2 3 4 | data(lemurs)
## Not run:
GetElevation(lemurs)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.