Learn R Programming

EMMAgeo (version 0.9.7)

convert.units: Convert between 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, grain-size class values in phi to be converted.

mu

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

Value

Numeric vector, converted grain-size class values.

See Also

interpolate.classes

Examples

Run this code
# NOT RUN {
## 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