Description Usage Arguments Value Examples
View source: R/temperature_conversion.R
The function temperature_conversion() converts a numerical representation of temperature among three common units: Fahrenheit, Celsius and Kelvin.
1 | temperature_conversion(input_unit, output_unit, input_temp)
|
input_unit |
Unit of the input temperature. The unit should be one of the strings from "C', "K", "F", "Celsius", "Kelvin" and "Fahrenheit". |
output_unit |
Unit of the output temperature. The unit should also be one of the string from "C', "K", "F", "Celsius", "Kelvin" and "Fahrenheit". Same input and output units are not allowed, and will generate error messages. |
input_temp |
Input temperature before conversion. The input temperature can come from manual input to the function argument, or it can come from calling on data columns from datasets. |
Temperature after conversion that is in the specified output unit.
1 2 3 | temperature_conversion("Celsius", "Kelvin", 50)
temperature_conversion("K", "F", 50)
temperature_conversion("Celsius", "F", 50)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.