earth.dist: Find the distance between locations specified by...

Description Usage Arguments Value

Description

Find the distance between locations specified by latitude/longitude in degrees.

Usage

1
earth.dist(locs, dist = TRUE)

Arguments

locs

a matrix of locations, each row specifying two locations to find the distance between. The first two columns are the "from" longitude and latitude, respectively; the third and fourth columns are the "from" longitude and latitude, respectively.

dist

logical: return the distances as a dist object (distance matrix)?

Value

either a matrix or a distance matrix containing the distances between all the points.


wrbrooks/lagr documentation built on May 4, 2019, 11:59 a.m.