Learn R Programming

caliver (version 2.0.0)

relative_humidity: relative_humidity

Description

Calculate relative humidity from 2m temperature (in Celsius) and 2m dew point temperature (in Celsius).

Usage

relative_humidity(t2m, d2m, unit = "Celsius", method = "August-Roche-Magnus")

Arguments

t2m

2m temperature (in Celsius)

d2m

2m dew point temperature (in Celsius)

unit

can be "Celsius" (default) or "Kelvin"

method

can be "August-Roche-Magnus" (default) or "Clausius-Clapeyron"

Value

The function returns a numeric, with length equal to t2m (and d2m).

Examples

Run this code
# NOT RUN {
  relative_humidity(t2m = 30, d2m = 25,
                    unit = "Celsius",
                    method = "August-Roche-Magnus")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab