Learn R Programming

⚠️There's a newer version (0.1.5) of this package.Take me there.

humidity

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

Introduction

Vapor pressure, 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), absolute humidity (kg/m^3), specific humidity (kg/kg), and mixing ratio (kg/kg) from temperature (K) and relative humidity (%).

Installation

Get the released version from CRAN:

install.packages("humididty")

Or the development version from github:

# 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

238

Version

0.1.1

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Jun Cai

Last Published

July 22nd, 2016

Functions in humidity (0.1.1)

MR

calculate mixing ratio
SVP

calculate saturation vapor pressure
WVP

calculate partial water vapor pressure
SVP.ClaCla

calculate saturation vapor pressure using the Clausius-Clapeyron equation
T0

Absolute zero
SH

calculate specific humidity
SVP.Murray

calculate saturation vapor pressure using the Murray equation
Mw

Molecular weight of water vapor
L

Latent heat of water vapor
K2C

Kelvin to Celsius conversion
Rw

Specific gas constant of water vapor
AH

calculate absolute humidity
C2K

Celsius to Kelvin conversion
Md

Molecular weight of dry air
ivs

Viability of influenza A virus for 1 hour after spraying
Es.T0

Saturation vapor pressure at absolute zero (hPa)