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