trackDistance {trip}R Documentation

Determine distance along a track

Description

Calculate the distance between subsequent 2-D coordinates.

Usage

trackDistance(track, longlat = FALSE, push = 1)

Arguments

track matrix of 2-columns, with x/y coordinates
longlat logical - are the data longlat?
push an offset for measuring distance between this and the next (push) location

Details

This uses the (fast) spDistsN1.

Value

Vector of distances between coordinates.

Warning

....

Note

~~further notes~~

~Make other sections like Warning with section{Warning }{....} ~

Author(s)

~~who you are~~

References

~put references to the literature/web site here ~

See Also

spDistsN1 for the underlying code


[Package trip version 1.1-2 Index]