R/bearing.R
st_geod_azimuth.Rd
compute azimuth between sequence of points
st_geod_azimuth(x, y = NULL)
object of class sf, sfc or sfg
sf
sfc
sfg
object of class sf, sfc or sfg, or NULL
library(sf) p = st_sfc(st_point(c(7,52)), st_point(c(8,53)), crs = 4326) st_geod_azimuth(p) #> 0.5410385 [rad]