EA.drift.correct: Drift corrects raw data from the EA based on standards

View source: R/EA.drift.correct.R

EA.drift.correctR Documentation

Drift corrects raw data from the EA based on standards

Description

This function uses repeated analysis of known standard to check for an, if desired, correct raw data for instrumental drift. The function first test for sufficient data to make the correction. If data are insufficient, the raw data ar copied unchanged to new column, .csv written, and outcome printed to the console. If the data are sufficient, a drift analysis is done and plots generated. The user is asked if they want to drift correct the C data, N data, or both. The function returns a character vector that indicates the results of the drift correct as N, C, both, or none.

Usage

EA.drift.correct(results)

Arguments

results

List containing results from previous functions.

Value

List with two tables and a Boolean flag:

standard.CN

Dataframe of raw data IsoDat data for the standards and QTY standards; updated to with new column for drift corrected data, if required.

sample.CN

Dataframe of raw data IsoDat data for the unknown samples form the sequence; updated to with new column for drift corrected data, if required.

drift.correct.flag

Boolean flag to indicate if a drift correction was performed.

Author(s)

Gordon W. Holtgrieve


gholtgrieve/HEEL documentation built on Nov. 20, 2023, 10:59 a.m.