Learn R Programming

PROcess (version 1.48.0)

rmBaseline: Batch Baseline Subtraction.

Description

Baseline subtraction from each raw spectrum in 'fldr'.

Usage

rmBaseline(fldr, bseoffrda = NULL, breaks = 200, qntl = 0, method = "loess", bw = 0.1, SpecNames = list.files(fldr, pattern = "\\.*csv\\.*"))

Arguments

fldr
a path to where the raw spectra are stored
bseoffrda
optional; name of the file (with extension .rda) where the baseline-substracted spectra, a matrix with row-names as the m/z values and column-names as the spectrum tags, will be saved to.
breaks
see bslnoff().
qntl
see bslnoff().
method
see bslnoff().
bw
see bslnoff().
SpecNames
a vector of character strings as spectrum names.

Value

baseline-subtracted spectra with row-names as the m/z values and column-names as the spectrum names.

See Also

`bslnoff'.

Examples

Run this code
testdir <- system.file("Test", package = "PROcess")
testM <- rmBaseline(testdir)

Run the code above in your browser using DataLab