Learn R Programming

weathermetrics (version 1.2.2)

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

Description

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

Usage

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.

See Also

celsius.to.kelvin

Examples

Run this code
# Convert from Kelvin to Celsius.
data(angeles)
angeles$TemperatureC <- kelvin.to.celsius(angeles$TemperatureK)
angeles

Run the code above in your browser using DataLab