Learn R Programming

MALDIcellassay (version 0.4.47)

sdMassSpectrum: Compute standard-deviation spectra

Description

This is a fork from sgibb's MALDIquant::averageMassSpectra() function. It is now able to compute "standard-deviation spectra".

Usage

sdMassSpectrum(l, labels, ...)

Value

Returns a single (no labels given) or a list (labels given) of standard-deviation spectra as MassSpectrum objects.

Arguments

l

list, list of MassSpectrum objects.

labels

list, list of factors (one for each MassSpectrum object) to do groupwise averaging.

...

arguments to be passed to underlying functions (currently only mc.cores is supported).

Examples

Run this code
data(Blank2022spec)

sdMassSpectrum(Blank2022spec, labels = names(Blank2022spec))[[1]]

Run the code above in your browser using DataLab