turnAngle {momentuHMM} | R Documentation |
Turning angle
Description
Usage
turnAngle(x, y, z, type = "UTM", angleCov = FALSE)
Arguments
x |
First point |
y |
Second point |
z |
Third point |
type |
|
angleCov |
logical indicating to not return NA when x=y or y=z. Default: FALSE (i.e. NA is returned if x=y or y=z). |
Value
The angle between vectors (x,y) and (y,z).
If type='LL'
then turning angle is calculated based on initial bearings using bearing
.
Examples
## Not run:
x <- c(0,0)
y <- c(4,6)
z <- c(10,7)
momentuHMM:::turnAngle(x,y,z)
## End(Not run)
[Package momentuHMM version 1.5.5 Index]