Learn R Programming

frost (version 0.0.4)

convert.temperature: Temperature conversion

Description

Temperature conversion from/to Fahrenheit (<U+00B0>F), degress Celsius (<U+00B0>C) and Kelvin (K)

Usage

convert.temperature(from = "F", to = "C", values)

Arguments

from

possible values, "F" for Fahrenheit, "C" degress Celsius and "K" Kelvin.

to

possible values, "F" for Fahrenheit, "C" degress Celsius and "K" Kelvin.

values

can be an vector, array, or a numeric single value.

Value

value (double)

Examples

Run this code
# NOT RUN {
library(frost)
convert.temperature(from="K", to="C",350)
cels <- convert.temperature(from="F",to="C",c(120,80,134,110))
k <- convert.temperature(from="C", to="K",cels)

# }

Run the code above in your browser using DataLab