Calculate internal track angle on longitude, latitude input vectors. The unit of angle is degrees.
By convention the first and last values are set to
NA missing value, because the angle
applies to the location between each previous and next location.
To use this on multiple track ids, use a grouped data frame with tidyverse code like
data %>% group_by(id) %>% mutate(angle = track_angle(lon, lat)).
The maximum possible value is 180 and the minimum is 0.
a numeric vector of the relative internal angle between sequential locations in degrees, see Details
1 2 3 4 5 6
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.