Learn R Programming

sandbox (version 0.2.2)

convert_units: Convert between phi units and micrometers

Description

The function converts values from the phi-scale (Krumbein 1934, 1938) to the micrometer-scale and vice versa.

Usage

convert_units(phi, mu)

Value

numeric vector, converted grain-size class values

Arguments

phi

numeric vector, grain-size class values in phi to be converted

mu

numeric vector, grain-size class values in micrometres to be converted

Author

Michael Dietze, GFZ Potsdam (Germany)

Details

$$ \phi = -log2(D/D_{0})$$

with \(D\) the diameter in µm and \(D_{0}\) the reference diameter. Herer 1000 µm.

References

Krumbein, W.C., 1938. Size frequency distributions of sediments and the normal phi curve. Journal of Sedimentary Research 8, 84–90. tools:::Rd_expr_doi("10.1306/D4269008-2B26-11D7-8648000102C1865D")

Krumbein, W.C., 1934. Size frequency distributions of sediments. Journal of Sedimentary Research 4, 65–77. tools:::Rd_expr_doi("10.1306/D4268EB9-2B26-11D7-8648000102C1865D")

Examples

Run this code
## 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)

Run the code above in your browser using DataLab