Description Usage Arguments Details Value Author(s) See Also Examples
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.
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)
|
quantity |
character; the quantity to show units for |
verbose |
logical; should a message be printed also? |
This function uses match.arg
so partial representations are OK.
The dimensional representations this far are
L length
T time
M mass
with SI units [m], [s], and [kg] respectively.
A character string with the quantity, and dimensional-units; invisibly.
Andrew J. Barbour <andy.barbour@gmail.com>
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.