Learn R Programming

OOI (version 0.1.0)

geo_dist: Geographical distance

Description

calculates geo distance between *two* points.

Usage

geo_dist(x.loc, z.loc)

Arguments

x.loc

a 2-length vector. The first value is for longitude, the second for latitude.

z.loc

a 2-length vector. The first value is for longitude, the second for latitude.

Value

distance in miles.