Learn R Programming

geo (version 1.4-3)

pdist: Spherical (?) distance

Description

Spherical (?) distance.

Usage

pdist(lat, lon, lat1, lon1)

Arguments

lat,lon
Coordinate vectors of starting positions in lat/lon
lat1,lon1
Coordinate vectors of end positions in lat/lon

Value

Distance in kilometers.

See Also

Called by pointkriging and variogram.