View source: R/prepare_Subsample.R
prepare_Subsample | R Documentation |
The function splits the master sample in a set of subsamples. The
step can be done by creating equally large subsamples in terms of
contained grains (parameter number
), by volume (parameter
volume
) or by weight (parameter weight
).
prepare_Subsample(sample, number, volume, weight)
sample |
data.frame, sample object to be distributed to aliquots. |
number |
numeric value, number of evenly large subsamples to be created |
volume |
numeric value, volume of subsamples. Remainder of the master sample that is too small for the last subsample is removed. Volume must be given in m^3 and takes packing density of the sample into account. |
weight |
numeric value, weight of the subsamples. Remainder of the master sample that is too small for the last subsample is removed. Weight is calculated based on density of each grain. Weight must be given in kg. |
list object with grains organised as aliquots, i.e. list elements.
Michael Dietze, GFZ Postdam (Germany)
## load example data set data(sample, envir = environment()) ## create 10 subsamples prepare_Subsample(sample, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.