cimis_degrees_to_compass {cimir} | R Documentation |
Degrees to Compass Direction
Description
Convert decimal degrees to Compass direction.
Usage
cimis_degrees_to_compass(x)
Arguments
x |
A vector of directions in decimal degrees. |
Details
Degrees are labeled with their corresponding Primary InterCardinal compass direction, following the convention of the CIMIS daily wind data items.
Value
A factor vector of compass directions.
See Also
Examples
cimis_degrees_to_compass(c(30, 83, 120, 140, 190, 240, 300, 330))
cimis_degrees_to_compass(cimis_compass_to_degrees(c("NNE", "ENE",
"ESE", "SSE", "SSW", "WSW", "WNW", "NNW")))
[Package cimir version 0.4-1 Index]