dimensional_units: Gives dimensional units for quantity desired.

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Poroelasticity and hydrogeology can be a mish-mash of units; keeping them straight can be challenging. This returns a string with the dimensional units, and (optionally) prints them as a message.

Usage

1
2
3
4
dimensional_units(quantity = c("show.all", "conductivity", "diffusivity",
  "transmissivity", "storativity", "specific.storage", "viscosity", "density",
  "kinematic.viscosity", "permeability", "force", "stress", "strain",
  "compressibility", "porosity", "skempton"), verbose = TRUE)

Arguments

quantity

character; the quantity to show units for

verbose

logical; should a message be printed also?

Details

This function uses match.arg so partial representations are OK.

The dimensional representations this far are

with SI units [m], [s], and [kg] respectively.

Value

A character string with the quantity, and dimensional-units; invisibly.

Author(s)

Andrew J. Barbour <andy.barbour@gmail.com>

See Also

hydrogeo.p-units, hydrogeo.p

Examples

1
2
3
4
5
### code to be run
print(dimensional_units(verbose=FALSE)) # show all
dimensional_units("diffusivity") # [ L^2 / T ]
dimensional_units("diff") # matches also, because of match.arg
print(dimensional_units("diff", FALSE)) # print, but no message

abarbour/hydrogeo documentation built on May 10, 2019, 4:06 a.m.