50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


cimir (version 0.4-1)

cimis_compass_to_degrees: Compass Direction To Degrees

Description

Convert the Compass direction labels to degrees.

Usage

cimis_compass_to_degrees(x)

Arguments

x

A vector of compass directions, i.e. the data item labels "DayWindNnw", "DayWindSse", etc. Recognized directions are North-northeast (NNE), East-northeast (ENE), East-southeast (ESE), South-southeast (SSE), South-southwest (SSW), West-southwest (WSW), West-northwest (WNW), and North-northwest (NNW).

Value

A numeric vector of degrees corresponding to the middle azimuth of the corresponding compass direction.

See Also

cimis_degrees_to_compass()

Examples

Run this code
# NOT RUN {
cimis_compass_to_degrees("day-wind-nne")
cimis_compass_to_degrees(c("SSE", "SSW", "wsw", "Wnw", "nnw"))

# }

Run the code above in your browser using DataLab