kelvin.to.celsius: Convert from Kelvin to Celsius.

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/temperature_conversions.R

Description

kelvin.to.celsius creates a numeric vector of temperatures in Celsius from a numeric vector of temperatures in Kelvin.

Usage

1
kelvin.to.celsius(T.kelvin, round = 2)

Arguments

T.kelvin

Numeric vector of temperatures in Kelvin.

round

An integer indicating the number of decimal places to round the converted value.

Value

A numeric vector of temperature values in Celsius.

Note

Equations are from the source code for the National Oceanic and Atmospheric Association's online temperature converter.

Author(s)

Joshua Ferreri [email protected], Brooke Anderson [email protected]

See Also

celsius.to.kelvin

Examples

1
2
3
4
# Convert from Kelvin to Celsius.
data(angeles)
angeles$TemperatureC <- kelvin.to.celsius(angeles$TemperatureK)
angeles

weathermetrics documentation built on May 29, 2017, 3:39 p.m.