| calcEnthalpy | R Documentation |
Function to calculate enthalpy from temperature (°C) and relative humidity (%).
Enthalpy is the total heat content of air, combining sensible (related to temperature) and latent heat (related to moisture content), used in HVAC calculations. Enthalpy is the amount of energy required to bring a gas to its current state from a dry gas at 0°C.
calcEnthalpy(Temp, RH, ...)
Temp |
Temperature (°Celsius) |
RH |
Relative Humidity (0-100%) |
... |
Additional arguments to supply to |
h Enthalpy (kJ/kg)
# Enthalpy at at 20°C (Temp) and 50% relative humidity (RH)
calcEnthalpy(20, 50)
# mydata file
filepath <- data_file_path("mydata.xlsx")
mydata <- readxl::read_excel(filepath, sheet = "mydata", n_max = 5)
mydata |> dplyr::mutate(Enthalpy = calcEnthalpy(Temp, RH))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.