getRegionalData: getRegionalData

Description Usage Arguments Value Author(s) Examples

View source: R/getRegionalData.R

Description

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.

Usage

1
2
getRegionalData(Longitude, Latitude, realm = c("Marine", "Terrestrial",
  "Freshwater", "IPBES", "Hotspot"))

Arguments

realm

"Marine", "Terrestrial", "Freshwater", "IPBES", "Hotspot"

lats

Latitude values in decimal degrees

longs

Longitude values in decimal degrees

Value

Returns a data frame of geographic regions for each point

seealso sp::over

Author(s)

Sarah Supp, Shane Blowes.

Examples

 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

sarahsupp/growR documentation built on May 29, 2019, 1:50 p.m.