CoordCollapse: Removes duplicate geographic locations and binds coordinates...

Description Usage Arguments Value Note Examples

View source: R/CoordCollapse.R

Description

Removes duplicate geographic locations and binds coordinates into a single element

Usage

1
CoordCollapse(longs, lats)

Arguments

longs

- Longitudinal coordinates of occurrences in decimal degrees

lats

- Latitudinal coordinates of occurrences in decimal degrees

Value

Returns a 2-column array of coordinates without any duplicate locations

Note

Points are truncated to the hundredths place before checking for duplicates

Examples

1
2
3
longs<-c(34,133,-45)
lats<-c(-12,44,76)
CoordCollapse(longs,lats)

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