R/f_to_c.R

Defines functions f_to_c

Documented in f_to_c

#'Fahrenheit converter
#'
#'This function converts temperature from Fahrenheit to Celsius.
#'
#'@param temp_F Numeric input indication temperature in Fahrenheit.
#'@keywords temperature
#'
#'@return Numeric indicating temperatures \code{temp_F} converted to Celsius.
#'
#'@examples
#'f_to_c(32)
#'f_to_c(212)
#'
#'@export
f_to_c <- function(temp_F) {
  temp_C <- (temp_F - 32) * 5 / 9
  return(temp_C)
}
jingnanyuan/STAT302package documentation built on April 2, 2020, 9:42 p.m.