R/f_to_c.R

Defines functions f_to_c

Documented in f_to_c

#' Farenheit converter
#' 
#' This function converts temperature from Farenheit to Celcius.
#' 
#' @param temp_F Numeric input indicating temperature in Farenheit.
#' @keywords temperature
#' 
#' @return Numeric indicating temperature \code{temp_F} converted to Celcius.
#' 
#' @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)
}
dhruvrc/STAT302Package documentation built on March 24, 2020, 5:36 p.m.