selectSpectra: Select a subset of spectra matching properties

Description Usage Arguments Value Methods (by class) Author(s)

Description

From a list of RmbSpectraSets, returns the spectra which match a criterion (found, complete, empty as in checkSpectra). This can be returned either as a TRUE/FALSE vector, as a vector of indices for matching elements, as a vector of RmbSpectraSet objects matching the conditions, or as a vector of RmbSpectraSet objects NOT matching the conditions (sic!).

Usage

1
2
3
4
5
6
7
selectSpectra(s, property, value = "logical")

## S4 method for signature 'RmbSpectraSetList,character'
selectSpectra(s, property, value = "logical")

## S4 method for signature 'msmsWorkspace,character'
selectSpectra(s, property, value = "logical")

Arguments

s

The RmbSpectraSetList or msmsWorkspace to select RmbSpectraSets from.

property

The property to check (found, complete or empty)

value

logical if a TRUE/FALSE list should be returned; index if a vector of matching indices should be returned, object if matching objects should be returned, mismatch if mismatching objects should be returned.

Value

As described above.

Methods (by class)

Author(s)

stravsmi


RMassBank documentation built on Nov. 8, 2020, 6:06 p.m.