fahrenheit.to.kelvin {weathermetrics}R Documentation

Convert from Fahrenheit to Kelvin.

Description

fahrenheit.to.kelvin creates a numeric vector of temperatures in Kelvin from a numeric vector of temperatures in Fahrenheit.

Usage

fahrenheit.to.kelvin(T.fahrenheit, round = 2)

Arguments

T.fahrenheit

Numeric vector of temperatures in Fahrenheit.

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.fahrenheit

Examples

# Convert from Fahrenheit to Kelvin.
data(norfolk)
norfolk$TempuratureK <- fahrenheit.to.kelvin(norfolk$TemperatureF)
norfolk


[Package weathermetrics version 1.2.2 Index]