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 joshua.m.ferreri@gmail.com, Brooke Anderson brooke.anderson@colostate.edu

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

weathermetrics documentation built on May 2, 2019, 2:18 a.m.