The function converts temperatures among Celsius, Fahrenheit, and Kelvin (J. Blischak et al. 2016) .

fahrenheit_to_kelvin(temperature)

kelvin_to_celsius(temperature)

celsius_to_kelvin(temperature)

fahrenheit_to_celsius(temperature)

Arguments

temperature

numeric temperature (Celsius, Fahrenheit, or Kelvin).

Value

numeric temperature (Celsius, Fahrenheit, or Kelvin).

References

J. Blischak, D. Chen, H. Dashnow, Haine D (2016). Software Carpentry: Programming with R. doi:10.5281/zenodo.57541 , Version 2016.06, June 2016.

See also

Examples

  kelvin_to_celsius(temperature = 270)
#> [1] -3.15
  fahrenheit_to_kelvin(temperature = 85)
#> [1] 302.5944
  fahrenheit_to_celsius(temperature = 85)
#> [1] 29.44444
  celsius_to_kelvin(temperature = -10)
#> [1] 263.15