R/f_to_c.r

Defines functions f_to_c

Documented in f_to_c

#' Fahrenheid converter
#'
#' This function coverts the input from Fahrenheid to Celsius
#'
#' @param temp_F Numeric value for temperature in Fahrenheid.
#' @keywords temperature
#' @return Numeric value representing the temperature in \code{temp_F} converted to Celsius.
#' @examples
#' f_to_c(72)
#' f_to_c(222)
#' @export
f_to_c <- function(temp_F) {
  temp_C <- (temp_F - 32) * 5 / 9
  return(temp_C)
}
UWStat302-student/UWStat302Package documentation built on Dec. 31, 2020, 5:39 p.m.