kelvin.to.celsius {weathermetrics} | R Documentation |
kelvin.to.celsius
creates a numeric vector of temperatures in
Celsius from a numeric vector of temperatures in Kelvin.
kelvin.to.celsius(T.kelvin, round = 2)
T.kelvin |
Numeric vector of temperatures in Kelvin. |
round |
An integer indicating the number of decimal places to round the converted value. |
A numeric vector of temperature values in Celsius.
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 Kelvin to Celsius.
data(angeles)
angeles$TemperatureC <- kelvin.to.celsius(angeles$TemperatureK)
angeles