sum.MassArraySpectrum: Sum MassArraySpectrum objects

Description Usage Arguments Value Author(s) See Also Examples

Description

Function to collapse multiple MassArraySpectrum objects into a single MassArraySpectrum representing the sum of each

Usage

1
2
## S3 method for class 'MassArraySpectrum'
sum(x, ..., trim = 0, na.rm = TRUE)

Arguments

x

One or multiple MassArraySpectrum objects to include in sum

...

Any additional MassArraySpectrum objects to include in sum

trim

Numerical value between 0 and 0.5 specifying the proportion of spectra to remove from consideration on a per peak basis, such that the SNR of each peak is calculated as the trimmed mean of the same peak across all included spectra.

na.rm

Logical value passed to mean, indicating whether NA values should be stripped before the computation proceeds.

Value

Returns a single MassArraySpectrum object that represents the union of all unique peaks from the component MassArraySpectrum objects, with SNR for each peak representing the average value of that peak across all spectra

Author(s)

Reid F. Thompson (rthompso@aecom.yu.edu), John M. Greally (jgreally@aecom.yu.edu)

See Also

See Also as MassArraySpectrum

Examples

1
2
3
4

MassArray documentation built on Nov. 8, 2020, 5:16 p.m.