fahrenheit.to.kelvin {weathermetrics} | R Documentation |
fahrenheit.to.kelvin
creates a numeric vector of temperatures in
Kelvin from a numeric vector of temperatures in Fahrenheit.
fahrenheit.to.kelvin(T.fahrenheit, round = 2)
T.fahrenheit |
Numeric vector of temperatures in Fahrenheit. |
round |
An integer indicating the number of decimal places to round the converted value. |
A numeric vector of temperature values in Kelvin.
Equations are from the source code for the National Oceanic and Atmospheric Association's online temperature converter.
#' Joshua Ferreri joshua.m.ferreri@gmail.com, Brooke Anderson brooke.anderson@colostate.edu
# Convert from Fahrenheit to Kelvin.
data(norfolk)
norfolk$TempuratureK <- fahrenheit.to.kelvin(norfolk$TemperatureF)
norfolk