Description Usage Arguments Value Author(s) Examples
View source: R/getRegionalData.R
getRegions
Gets regional information for your dataset, depending on the realm of interest.
#' Code is modified and extended from @jebyrnes package meowR https://github.com/jebyrnes/meowR.
1 2 | getRegionalData(Longitude, Latitude, realm = c("Marine", "Terrestrial",
"Freshwater", "IPBES", "Hotspot"))
|
realm |
"Marine", "Terrestrial", "Freshwater", "IPBES", "Hotspot" |
lats |
Latitude values in decimal degrees |
longs |
Longitude values in decimal degrees |
Returns a data frame of geographic regions for each point
seealso sp::over
Sarah Supp, Shane Blowes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(regions)
latlong <- data.frame(lat = c(50.0944444, 33.4691667, 34.0348833,
55.0869876, 51.7787776,
49.6088889, -35.750729),
long=c(-127.55889, -119.53028,
-119.70308, -161.87444,
178.30199, -126.78056, 150.259155))
regionalData <- getRegionalData(latlong$lat, latlong$long, realm="Marine")
newdata <- cbind(latlong, regionalData)
newdata
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.