Learn R Programming

TLBC (version 1.0)

distance: Distance

Description

Function to compute the distance between two sets of latitude and longitude coordiantes.

Usage

distance(origin, destination)

Arguments

origin
A data frame with the the fields lat and lon.
destination
A data frame with the the fields lat and lon.

Value

Distance in meters.

See Also

computeOneGPSFeat