cov_R: Function for co-variate conversion of isotope systems

View source: R/misc_utils.R

cov_RR Documentation

Function for co-variate conversion of isotope systems

Description

cov_R create a wide format tibble for an isotope pair

Usage

cov_R(.IC, .ion, ..., .species = NULL, .t = NULL, .preserve = FALSE)

Arguments

.IC

A tibble containing processed ion count data.

.ion

A character string or vector constituting ion names.

...

Variables for grouping.

.species

A variable constituting the species analysed.

.t

A variable constituting the time of the analyses.

.preserve

A logical whether to preserve ID variable.

Details

This functions converts the long format data frame to a wide format tibble for an isotope pair based on an unique identifier for the time of measurement. The data can be linked by a combination of three variable unique for the analyses; the file name, the chemical species name and the time increment of measurement. Pay attention when using in combination with 'zeroCt()'.

Value

A tibble::tibble in wide format

Examples


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

# wide format
cov_R(tb_pr, c("13C", "12C"), file.nm)


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