Learn R Programming

EMMAgeo (version 0.9.0)

convert.units: Function to convert phi and micrometers.

Description

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

Usage

convert.units(phi, mu)

Arguments

phi
Numeric vector with grain-size class values in phi to be converted.
mu
Numeric vector with grain-size class values in micrometres to be converted.

Value

  • Numeric vector with converted grain-size class values.

See Also

interpolate.classes

Examples

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

Run the code above in your browser using DataLab