Calculate the angles between subsequent 2-D coordinates using Great Circle distance (spherical) methods.
trackAngle(x) # S3 method for trip trackAngle(x) # S3 method for default trackAngle(x)
x | trip object, or matrix of 2-columns, with x/y coordinates |
---|
Vector of angles (degrees) between coordinates.
If x
is a trip object, the return result has an extra element for the
start and end point of each individual trip, with value NA.
This is an optimized hybrid of "raster::bearing" and
gzAzimuth
.