key <- name_backbone(name='Puma concolor', kingdom='plants')$speciesKey
dat <- occ_search(taxonKey=key, return='data', limit=300, georeferenced=TRUE)
elevation(dat)
# Pass in a vector of lat's and a vector of long's
elevation(latitude=dat$latitude, longitude=dat$longitude)
# Pass in lat/long pairs in a single vector
pairs <- list(c(31.8496,-110.576060), c(29.15503,-103.59828))
elevation(latlong=pairs)Run the code above in your browser using DataLab