remAd: remAd

remAdR Documentation

remAd

Description

Remove adducts from an RHermesExp adduct list

Usage

remAd(struct, name)

## S4 method for signature 'RHermesExp,character'
remAd(struct, name)

Arguments

struct

The RHermesExp object

name

The names of the adducts to remove. If they aren't in the RHermesExp will raise a warning but no rows will be substracted.

Details

Removes a row (or many) from the adduct list slot inside the RHermesExp object

Value

An updated RHermesExp object

Examples

if(FALSE){
 remAd(myHermes, 'M+H') #Just one
 remAd(myHermes, c('M+DMSO+H', 'M+2K-H', 'M+CH3OH+H')) #Or many at a time
}

RogerGinBer/RHermes documentation built on Nov. 6, 2022, 11:34 a.m.