zeroCt: Remove analytical runs with zero counts

View source: R/misc_utils.R

zeroCtR Documentation

Remove analytical runs with zero counts

Description

zeroCt removes analytical runs for isotope ratios that contain zero counts.

Usage

zeroCt(.IC, .ion1, .ion2, ..., .N = NULL, .species = NULL, .warn = TRUE)

Arguments

.IC

A tibble containing processed ion count data.

.ion1

A character string constituting the rare isotope ("13C").

.ion2

A character string constituting the common isotope ("12C").

...

Variables for grouping.

.N

A variable constituting the ion counts.

.species

A variable constituting the species analysed.

.warn

A logical indicating whether to produce a warning.

Details

This functions removes analytical runs with zero counts for calculating isotope ratios.

Value

A tibble containing the single ion count dataset for the specified ion ratio. The grouping variable specifies on which level the original dataset is subsetted.

Examples

# Use point_example() to access the examples bundled with this package

# raw data containing 13C and 12C counts on carbonate
tb_rw <- read_IC(point_example("2018-01-19-GLENDON"))

# Processing raw ion count data
tb_pr <- cor_IC(tb_rw)

# Remove analyses with zero counts
tb_pr <- zeroCt(tb_pr, "13C", "12C", file.nm)

MartinSchobben/point documentation built on May 22, 2022, 7:15 a.m.