Converts temperature measurements into Kelvin
Usage
convert2Kelvin(temp, input = "C")
Arguments
- temp
The value of the temperature to convert
- input
The unit of the temperature to convert, allowed values are "C", "F".
Value
Numeric value in Kelvin
Examples
convert2Kelvin(15, input="C")
#> [1] 288.15
convert2Kelvin(15, input="F")
#> [1] 263.7056