Description Usage Arguments Details Value Examples
Converts temperatures temperatures between degrees Celsius, degrees Fahrenheit and Kelvin.
1 2 | convert.temp(from.temp, from.unit = "Celsius", to.unit = "Kelvin",
as.json = FALSE)
|
from.temp |
Temperature value to be converted. |
from.unit |
Scale of the temperature value to be converted. Either
|
to.unit |
Target temperature scale. Either |
as.json |
Indicates if function returns JSON object describing the conversion instead of just the converted temperature value. |
If as.json==TRUE
then convert.temp()
returns a JSON
object containing two sub-object from
and to
each of which
has a temp
and a unit
field to describe the temperature. The
from.unit
and to.unit
arguments are case-insensitive.
Either the converted temperature value or a JSON object (see details).
1 2 | result.fahrh.json <- convert.temp(24.5, from.unit="celsius", to.unit="fahrenheit", as.json=TRUE)
result.kelv <- convert.temp(24.5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.