cimis_degrees_to_compass: Degrees to Compass Direction

View source: R/util.r

cimis_degrees_to_compassR 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

cimis_compass_to_degrees()

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")))


mkoohafkan/cimir documentation built on Jan. 31, 2024, 9:21 p.m.