View source: R/convert_units.R
convert_units | R Documentation |
The function converts values from the phi-scale (Krumbein 1934, 1938) to the micrometer-scale and vice versa.
convert_units(phi, mu)
phi |
numeric vector, grain-size class values in phi to be converted |
mu |
numeric vector, grain-size class values in micrometres to be converted |
φ = -log2(D/D_{0})
with D the diameter in µm and D_{0} the reference diameter. Herer 1000 µm.
numeric vector, converted grain-size class values
Michael Dietze, GFZ Potsdam (Germany)
Krumbein, W.C., 1938. Size frequency distributions of sediments and the normal phi curve. Journal of Sedimentary Research 8, 84–90. doi: 10.1306/D4269008-2B26-11D7-8648000102C1865D
Krumbein, W.C., 1934. Size frequency distributions of sediments. Journal of Sedimentary Research 4, 65–77. doi: 10.1306/D4268EB9-2B26-11D7-8648000102C1865D
## load example data set ## generate phi-values phi <- -2:5 ## convert and show phi to mu mu <- convert_units(phi = phi) mu ## convert and show mu to phi convert_units(mu = mu)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.