Learn R Programming

weathR (version 0.1.0)

dir_as_integer: Convert Wind Direction from a Character to an Integer

Description

Convert Wind Direction from a Character to an Integer

Usage

dir_as_integer(direction)

Value

An integer representing degrees clockwise from north.

Arguments

direction

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

Examples

Run this code
dir_as_integer("NNW")

Run the code above in your browser using DataLab