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(0)

celsius_to_kelvin <- function(temp_C) {
  temp_K <- temp_C + 273.15
  return(temp_K)
}
Beening/tempConvert documentation built on Dec. 17, 2021, 10:47 a.m.