tabulate_lod: Tabulate limit of detection estimates

Description Usage Arguments Value Examples

View source: R/tabulate_lod.R

Description

tabulate_lod takes a powdRfps or powdRafps object and estimates the limit of detection of quantified phases using a hypothetical limit of detection of an internal standard and its reference intensity ratio.

Usage

1
tabulate_lod(x, type, std_rir, std_lod, ...)

Arguments

x

a powdRfps or powdRafps object.

type

one of 'all' or 'grouped'. Specifies whether results are grouped by phase names. Default = grouped.

std_rir

a numeric value specifying the reference intensity ratio of a hypothetical internal standard.

std_lod

a numeric value specifying an estimated limit of detection (weight percent) for the hypothetical internal standard.

...

other arguments

Value

a data frame.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
## Not run: 
#Load the minerals library
data(minerals)

Load the soils data
data(soils)

fps_sand <-  fps(lib = minerals,
                 smpl = soils$sandstone,
                 refs = minerals$phases$phase_id,
                 std = "QUA.1",
                 align = 0.2)

#Tabulate lod estimates based on the assumption that
#0.1 % quartz can be detected, with a RIR of 5.
tabulate_lod(fps_sand,
              std_rir = 5,
              std_lod = 0.1)

## End(Not run)

benmbutler/powdR documentation built on Nov. 29, 2021, 1:05 p.m.