R/cel_to_kel.R

Defines functions cel_to_kel

Documented in cel_to_kel

#' Convert Celsius degrees to Kelvin(K)
#'
#' cel_to_kel is a function to convert Celsius degrees to Kelvin(K)
#' Insert temperature in Celsius degrees to get the value in Kelvin(K).
#' For further information access:
#' https://github.com/marcelofukuoka/conversorR
#'
#' @param x of Celsius degrees is a numerical (double)
#'
#' @return Kelvin(K) as numerical (double)
#'
#' @export
#' @examples cel_to_kel(26.85)
cel_to_kel <- function(x){
  kelvin = x + 273.15
  return(kelvin)
}
cel_to_kel(40)
marcelofukuoka/conversorR documentation built on Dec. 21, 2021, 1:49 p.m.