R/celsius_to_kelvin.R

Defines functions celsius_to_kelvin

Documented in celsius_to_kelvin

#'Converts Celsius to Kelvin
#'
#'This function converts input temperatures in Celsius to Kelvin
#'@param temp_C The temperature in Celsius
#'@return The temperature in Kelvin
#'@export
#'@examples
#'celsius_to_kelvin(32)

celsius_to_kelvin <- function(temp_C) {
  temp_K <- temp_C + 273.15
  return(temp_K)
}
alex-konovalov/tempConverter documentation built on May 26, 2023, 10:25 p.m.