Remove adducts from an RHermesExp adduct list

remAd(struct, name)

# S4 method for 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.

Value

An updated RHermesExp object

Details

Removes a row (or many) from the adduct list slot inside the 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 }