Use functions from the circular package

hdg_circular(hdg)

Arguments

hdg

A heading in degrees, where 0 is north, 90 is east, 180 is south, and 270 is west. Values outside the range [0-360) are coerced to this range using hdg_norm().

Value

A circular::circular() object.

Examples

if (requireNamespace("circular", quietly = TRUE)) {
  hdg_circular(1:10)
}
#> Circular Data: 
#> Type = angles 
#> Units = degrees 
#> Template = geographics 
#> Modulo = asis 
#> Zero = 1.570796 
#> Rotation = clock 
#>  [1]  1  2  3  4  5  6  7  8  9 10