speed_to_knots {weathermetrics} | R Documentation |
speed_to_knots
creates a numeric vector of speed in knots from a
numeric vector of speed in the specified unit.
speed_to_knots(x, unit, round = 1)
x |
Numeric vector of wind speeds, in units specified by |
unit |
Character specifying the speed unit other than knots. Possible values are:
|
round |
An integer indicating the number of decimal places to round the converted value. |
A numeric vector of speeds (in knots)
Equations are from the source code for the National Oceanic and and Atmospheric Administration's online wind speed converter
Joshua Ferreri joshua.m.ferreri@gmail.com, Brooke Anderson brooke.anderson@colostate.edu
http://www.srh.noaa.gov/epz/?n=wxcalc_windconvert
data(beijing)
beijing$knots <- speed_to_knots(beijing$kmph, unit = "kmph", round = 2)
beijing