dir_as_integer: Convert Wind Direction from a Character to an Integer

View source: R/00-auxiliary.R

dir_as_integerR Documentation

Convert Wind Direction from a Character to an Integer

Description

Convert Wind Direction from a Character to an Integer

Usage

dir_as_integer(direction)

Arguments

direction

A direction, as a string (N, NNE, NE, ENE, E, ESE, etc).

Value

An integer representing degrees clockwise from north.

Examples

dir_as_integer("NNW")

weathR documentation built on April 4, 2025, 1:38 a.m.