prepare_Sieving: Sieve a Sample

View source: R/prepare_Sieving.R

prepare_SievingR Documentation

Sieve a Sample

Description

The function removes grains that are not within the provided sieve interval.

Usage

prepare_Sieving(sample, interval)

Arguments

sample

data.frame sample object to be sieved.

interval

numeric vector, sieve interval, in phi units.

Value

data.frame with grains that are within the sieve interval.

Author(s)

Michael Dietze, GFZ Potsdam (Germany)

Examples

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

## sieve sample (in phi units)
sample_sieved <- prepare_Sieving(
  sample = sample,
  interval = c(5, 6))
                                 
## plot results
plot(density(
  x = sample$grainsize, 
  from = -1, 
  to = 11))
lines(density(
  x = sample_sieved$grainsize, 
  from = -1, 
  to = 11), 
  col = 2)


sandbox documentation built on March 18, 2022, 7:06 p.m.