track_bearing_to(trips0$x, trips0$y, to_x = 147, to_y = -42)[1:10]
# N E S W
track_bearing_to(0,0, c(0, 10, 0, -10), c(5, 0, -5, 0))
# maximum and minimum value are the same direction (due south)
track_bearing(c(0, -0.00001), c(0, -1))
track_bearing(c(0, 0.00001), c(0, -1))
# the absolute minimum is north
track_bearing(c(0, 0), c(0, 1))
Run the code above in your browser using DataLab