dir_as_integer {weathR}R 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")

[Package weathR version 0.1.0 Index]