trackAngle: Determine internal angles along a track

Description Usage Arguments Details Value

View source: R/angle.R

Description

Calculate the angles between subsequent 2-D coordinates using Great Circle distance (spherical) methods.

Usage

1
2
3
4
5
6
7
trackAngle(x)

## S3 method for class 'trip'
trackAngle(x)

## Default S3 method:
trackAngle(x)

Arguments

x

trip object, or matrix of 2-columns, with x/y coordinates

Details

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 "maptools::gzAzimuth". New code is in the traipse package.

Value

Vector of angles (degrees) between coordinates.


trip documentation built on March 16, 2021, 9:08 a.m.