deg.dist: Find the distance from the "from" location to a vector of...

Description Usage Arguments Value

Description

Find the distance from the "from" location to a vector of "to" locations, given their latitude and longitude. Used by the earth.dist function.

Usage

1
deg.dist(long1, lat1, long2, lat2)

Arguments

long1

the "from" longitude, in degrees

lat1

the "from" latitude, in degrees

long2

the vector of "to" longitudes, in degrees

lat2

the vector of "to latitudes, in degrees

Value

numeric scalar distance from the "from" location to the "to" locations.


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