Remove adducts from an RHermesExp adduct list
remAd(struct, name) # S4 method for RHermesExp,character remAd(struct, name)
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. |
An updated RHermesExp object
Removes a row (or many) from the adduct list slot inside the RHermesExp object
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 }