convert_conductance {gunit}R Documentation

Convert conductance units

Description

Convert conductance units

Usage

convert_conductance(
  .g,
  P = set_units(101.3246, kPa),
  R = set_units(8.31446, J/K/mol),
  Temp = set_units(298.15, K)
)

Arguments

.g

Conductance in class units. Units must convertible to one of "m/s", "umol/m^2/s/Pa", or "mol/m^2/s"

P

A pressure value of class units that is convertible to kPa. Default is 101.3246 kPa, Earth's atmospheric pressure at sea level.

R

Ideal gas constant of class units that is convertible to J/K/kg. Default is 8.31446 J/K/mol.

Temp

A temperature value of class units that is convertible to K. Default is 25 degreeC (298.15 K).

Value

@return a tibble in units "m/s", "umol/m^2/s/Pa", and "mol/m^2/s".

Examples


# library(gunit)
library(units)

g_sc <- set_units(10, "m/s")
convert_conductance(g_sc)

g_sc <- set_units(4, "umol/m^2/s/Pa")
convert_conductance(g_sc)

g_sc <- set_units(0.4, "mol/m^2/s")
convert_conductance(g_sc)


[Package gunit version 1.0.2 Index]