Learn R Programming

humidity

humidity is an R package for calculating water vapor measures from temperature and dew point.

Introduction

Vapor pressure, relative humidity, absolute humidity, specific humidity, and mixing ratio are commonly used water vapor measures in meteorology. This R package provides functions for calculating saturation vapor pressure (hPa), partial water vapor pressure (Pa), relative humidity (%), absolute humidity (kg/m^3), specific humidity (kg/kg), and mixing ratio (kg/kg) from temperature (K) and dew point (K). Conversion functions between humidity measures are also provided.

Installation

Get the released version from CRAN:

install.packages("humididty")

Or the development version from github:

if (!requireNamespace("devtools")) install.packages("devtools")
devtools::install_github("caijun/humidity", build_vignettes = TRUE)

Tutorial

To get started with humidity package, view available vignettes in the package:

browseVignettes("humidity")

Contact

Bugs and feature requests can be filed to https://github.com/caijun/humidity/issues. Pull requests are also welcome.

Copy Link

Version

Install

install.packages('humidity')

Monthly Downloads

214

Version

0.1.5

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

November 10th, 2019

Functions in humidity (0.1.5)

SVP.Murray

calculate saturation vapor pressure using the Murray equation
Rw

Specific gas constant of water vapor
ivs

Viability of influenza A virus for 1 hour after spraying
SH

calculate specific humidity
K2C

Kelvin to Celsius conversion
Es.T0

Saturation vapor pressure at absolute zero (hPa)
ivt

Aerosol transmission efficiency of influenza A virus from guinea pigs to guinea pigs
RH

calculate relative humidity
Md

Molecular weight of dry air
SH2RH

convert specific humidity into relative humidity
Mw

Molecular weight of water vapor
AH

calculate absolute humidity
C2K

Celsius to Kelvin conversion
T0

Absolute zero
SVP

calculate saturation vapor pressure
L

Latent heat of water vapor
MR

calculate mixing ratio
WVP1

calculate partial water vapor pressure given dew point
WVP2

calculate partial water vapor pressure given relative humidity and saturation water vapor pressure
SVP.ClaCla

calculate saturation vapor pressure using the Clausius-Clapeyron equation