prepare_Subsample {sandbox}R Documentation

Prepare Subsamples from a Sample Dataset

Description

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).

Usage

prepare_Subsample(sample, number, volume, weight)

Arguments

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.

Value

list object with grains organised as aliquots, i.e. list elements.

Author(s)

Michael Dietze, GFZ Postdam (Germany)

Examples

## load example data set
data(sample, envir = environment())

## create 10 subsamples
prepare_Subsample(sample, 10) 


[Package sandbox version 0.2.1 Index]