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

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

Description

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

Usage

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

Arguments

T.celsius

Numeric vector of temperatures in Celsius.

round

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

Value

A numeric vector of temperature values in Kelvin.

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

kelvin.to.celsius

Examples

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

geanders/weathermetrics documentation built on May 17, 2019, 12:14 a.m.