#' Converts Kelvin to Celsius
#'
#' This function converts input temperatures in Kelvin to Celsius.
#' @param temp_K The temperature in Kelvin.
#' @return The temperature in Celsius.
#' @export
#' @examples
#' kelvin_to_celsius(300)
kelvin_to_celsius <- function(temp_K) {
# Converts Kelvin to Celsius
temp_C <- temp_K - 273.15
temp_C
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.