convert_units: Convert between phi and micrometers.

Description Usage Arguments Value Author(s) Examples

View source: R/convert_units.R

Description

The function converts values from the phi-scale to the micrometer-scale and vice versa.

Usage

1
convert_units(phi, mu)

Arguments

phi

Numeric vector, grain-size class values in phi.

mu

Numeric vector, grain-size class values in micrometers.

Value

Numeric vector, converted grain-size class values.

Author(s)

Michael Dietze

Examples

1
2
3
4
5
6
7
8
9
## generate phi-values
phi <- -2:5

## convert and show phi to mu
mu  <- convert_units(phi = phi)
mu

## convert and show phi to mu
convert_units(mu = mu)

coffeemuggler/grainsize documentation built on June 21, 2017, 12:24 a.m.