cimis_compass_to_degrees: Compass Direction To Degrees

Description Usage Arguments Value See Also Examples

View source: R/util.r

Description

Convert the Compass direction labels to degrees.

Usage

1

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

1
2
cimis_compass_to_degrees("day-wind-nne")
cimis_compass_to_degrees(c("SSE", "SSW", "wsw", "Wnw", "nnw"))

cimir documentation built on Feb. 18, 2021, 1:06 a.m.