Learn R Programming

GeoRange (version 0.1.0)

CoordCollapse: Removes duplicate geographic locations and binds coordinates into a single element

Description

Removes duplicate geographic locations and binds coordinates into a single element

Usage

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

Examples

Run this code
longs<-c(34,133,-45)
lats<-c(-12,44,76)
CoordCollapse(longs,lats)

Run the code above in your browser using DataLab