View source: R/get_elevation.R
get_elevation | R Documentation |
A few steps are required to get the elevation data for a given field trial (there might be a more straightforward manner, though):
Get the country name based on the map.where function from the maps package
Convert the country name to ISO code for countries
Use the getData function from raster package using the ISO codes and the longitude and latitude data to obtain elevation
get_elevation(info_environments, path = NULL)
info_environments |
@return elevation_data
@export @author Cathy C. Westhues |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.