Description Usage Arguments Examples
This take in any two point features of class 'sf' and returns heading angle between the two points:
1 | calc_angle(x, y)
|
x |
point feature of class 'sf' |
y |
point feature of class 'sf' |
1 2 3 4 5 6 7 8 | ## Not run:
points <- sf::read_sf("data/Points.gpkg")
x <- sf::st_coordinates(points[1, 4])
y <- sf::st_coordinates(points[2, 4])
## End(Not run)
calc_angle(x, y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.