cimis_degrees_to_compass: Degrees to Compass Direction

Description Usage Arguments Details Value See Also Examples

View source: R/util.r

Description

Convert decimal degrees to Compass direction.

Usage

1

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

1
2
3
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")))

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