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

Description Usage Arguments Value Note Examples

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)

Example output

  Longitude Latitude
1       -45       76
2        34      -12
3       133       44

GeoRange documentation built on May 1, 2019, 8:03 p.m.