CHullAreaEarth: Performs convex hull area calculation from coordinate sets on...

Description Usage Arguments Details Value Note Examples

View source: R/CHullAreaEarth.R

Description

Performs convex hull area calculation from coordinate sets on the Earth's surface

Usage

1
CHullAreaEarth(longs, lats)

Arguments

longs

- Longitudinal coordinates of occurrences in decimal degrees

lats

- Latitudinal coordinates of occurrences in decimal degrees

Details

Uses the cylindrical equal area projection in order to check if the minimum convex hull wraps around the prime meridian

Value

Returns the convex hull area is square kilometers

Note

Relies on the 'sp' package for the Polygon and chull function. Assumes latitude and longitude coordinates use the WGS84 datum

Examples

1
2
3
longs<-c(-133,-101,56)
lats<-c(33,12,-2)
CHullAreaEarth(longs,lats)

Example output

[1] 17388997

GeoRange documentation built on June 20, 2017, 9:03 a.m.