Convert temperature measured in Kelvin- or Fahrenheit-scale to Celsius (°C).
Arguments
- x
temperature in initial scale:
for
c_k(x)
- in Kelvin-scale, [K]for
c_f(x)
- in Fahrenheit-scale, [°F]
Type:
assert_double
.
Examples
library(pipenostics)
# Convert from Kelvin to Celsius:
c_k(c(0, 373.15))
#> [1] -273.15 100.00
# [1] -273.15 100
# Convert from Fahrenheit to Celsius:
c_f(c(-459.67, 212))
#> [1] -273.15 100.00
# [1] -273.15 100