R/celsius_to_fahrenheit.R

Defines functions celsius_to_fahrenheit

Documented in celsius_to_fahrenheit

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

celsius_to_fahrenheit <- function(temp_C) {
  temp_F <- (temp_C *9/5) + 32
  return(temp_F)
}
Beening/tempConvert documentation built on Dec. 17, 2021, 10:47 a.m.