Learn R Programming

WES (version 1.0.0)

get_elevation_data: Get elevation data

Description

This function takes information of where and when a set of environmental samples were collected and retrieves the elevation (in meters) for those locations at an approximate 100m spatial resolution. Data come from the SRTM DEM which are accessed through the Amazon Web Services (AWS) API and the elevatr R package.

Usage

get_elevation_data(lon, lat)

Value

data.frame

Arguments

lon

A numeric vector giving the longitude of the sampling sites in Decimal Degrees.

lat

A numeric vector giving the latitude of the sampling sites in Decimal Degrees.

Examples

Run this code
# \donttest{

get_elevation_data(lon = template_WES_data$lon,
                   lat = template_WES_data$lat)

# }

Run the code above in your browser using DataLab