R/kelvin_to_fahrenheit.R

Defines functions kelvin_to_fahrenheit

Documented in kelvin_to_fahrenheit

#' Converts Kelvin to Fahrenheit
#'
#' This function converts input temperatures in Kelvin to Fahrenheit.
#' @param temp_K The temperature in Kelvin.
#' @return The temperature in Farenheit.
#' @export
#' @examples
#' kelvin_to_fahrenheit(0)

kelvin_to_fahrenheit <- function(temp_K) {
  temp_C <- kelvin_to_celsius(temp_K)
  temp_F <- celsius_to_fahrenheit(temp_C)
  return(temp_F)
}

#(K − 273.15) × 9/5 + 32 = °F
Beening/tempConvert documentation built on Dec. 17, 2021, 10:47 a.m.