celsius.to.kelvin {weathermetrics}R Documentation

Convert from Celsius to Kelvin.

Description

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

Usage

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

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


[Package weathermetrics version 1.2.2 Index]