Learn R Programming

specmine (version 2.0.3)

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.

Examples

Run this code
# NOT RUN {
  ## Example of data correction using background correction
  data(cassavaPPD)
  dataset.corrected = data_correction(cassavaPPD, type = "background")
# }

Run the code above in your browser using DataLab