cal_wind_direction: Covert wind direction code into degrees based on the base...

View source: R/cal_wind_direction.R

cal_wind_directionR Documentation

Covert wind direction code into degrees based on the base direction.

Description

Covert wind direction code into degrees based on the base direction.

Usage

cal_wind_direction(x, base_direction = c("North", "South", "East", "West"))

Arguments

x

Numeric. Wind direction code to be coverted.

base_direction

Character. Direction of 0 degree. Should be one of (E)ast, (W)est, (S)outh and (N)orth.

Value

Wind direction in degree format.


hxfan1227/cmdcr documentation built on Nov. 1, 2024, 12:40 a.m.