Converts the eight standard compass labels N, NE, E, SE, S, SW,
W and NW to bearing angles in radians, where zero is north and angles
increase clockwise.
See also
Other angle utilities:
angular_difference(),
angular_distance(),
check_angle(),
deg_to_rad(),
hour_to_rad(),
is_angle(),
normalize_angle(),
rad_to_compass(),
rad_to_deg(),
rad_to_hour()
Examples
compass_to_rad(c("N", "E", "S", "W"))
#> [1] 0.000000 1.570796 3.141593 4.712389