Converts azimuth angles into Cardinal directions
Examples
azimuth_to_cardinal(c(0, 23, 45, 100, 190, 270, 350), 4) # 8-point compass
#> [1] "N" "N" "E" "E" "S" "W" "N"
azimuth_to_cardinal(c(0, 23, 45, 100, 190, 270, 350), 8) # 8-point compass
#> [1] "N" "NE" "NE" "E" "S" "W" "N"
azimuth_to_cardinal(c(0, 23, 45, 100, 190, 270, 350), 16) # 16-point compass
#> [1] "N" "NNE" "NE" "E" "S" "W" "N"