Learn R Programming

marelac (version 2.1.11)

convert_T: Conversion Between Different Temperature Units

Description

The function converts between different units of temperature.

Usage

convert_T(x, unit = c("K", "C", "F"))

Value

A data frame with converted values.

Arguments

x

Vector of given temperature values,

unit

Measurement unit of the given value(s).

References

Mangum BW and Furukawa GT, 1990. Guidelines for Realizing the International Temperature Scale of 1990 (ITS-90). NIST Technical Note 1265. and the url

http://www.cstl.nist.gov/div836/836.05/papers/magnum90ITS90guide.pdf

See Also

convert_AStoPS, convert_PStoAS, convert_RtoS, convert_StoR, convert_StoCl, convert_p

Examples

Run this code
convert_T(0, "K")
convert_T(0, "C")
convert_T(0, "F")

convert_T(273.15, "K")
convert_T(-273.15, "C")
convert_T(c(-459.67, 0, 32), "F")

convert_T(32, "F")$C # 0 degrees C

Run the code above in your browser using DataLab