Learn R Programming

specmine (version 3.1.6)

data_correction: Data correction

Description

Perform spectra corrections with 3 different methods.

Usage

data_correction(dataset, type = "background", 
method = "modpolyfit", ...)

Arguments

dataset

list representing the dataset from a metabolomics experiment.

type

string that represents the type of correction that will be applied to the spectra. The three possible types are: "background", to perform background correction; "offset", to perform offset correction; and "baseline", to perform baseline correction.

method

string parameter of baseline correction indicating the correction method.

additional parameters of baseline correction.

Value

Returns the dataset with the spectra corrected.