LongRg {GeoRange} | R Documentation |
Calculates the longitudinal range in degrees and kilometers, assuming a latitude of 45 degrees for all points by default. Accounts for the possibility of wrapping around the globe.
Description
Calculates the longitudinal range in degrees and kilometers, assuming a latitude of 45 degrees for all points by default. Accounts for the possibility of wrapping around the globe.
Usage
LongRg(longs, lats = 45)
Arguments
longs |
- Longitudinal occurrences in decimal degrees |
lats |
- A single value representing the latitude to calculate longitudinal distance from or a list of latitudinal coordinates in decimal degrees |
Details
Calculates the longitudinal range as 360-largest longitudinal gap and accounts for the possbility that a taxon's range wraps around the prime meridian
Value
Returns the outermost coordinates of the set, the longitudinal span in degrees and in kilometers
Examples
longs<-c(133,76,-77,7,-80)
lats<-c(45)
LongRg(longs)
[Package GeoRange version 0.1.0 Index]