Description Usage Arguments Value Author(s) Examples
The function calculates the first moment of grainsize distributions, using either the arithmetic or geometric method.
1 
data 

classes 

unit 

method 

Numeric
vector, mean grainsize.
Michael Dietze
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19  ## load example data set
data(LA950)
## calculate arithemtric mean in metric scale
calc_mean(data = LA950$y,
classes = LA950$x,
unit = "mu")
## calculate arithmetic mean in phiscale
calc_mean(data = LA950$y,
classes = convert_units(mu = LA950$x),
unit = "phi")
## calculate geometric mean
calc_mean(data = LA950$y,
classes = LA950$x,
unit = "mu",
method = "geometric")

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.