setData: Set 'RmbSpectrum2' data from data.frame

Description Usage Arguments Value Author(s)

Description

Sets all slots which are present as columns in the given dataframe. Optionally cleans the object, i.e. empties slots not defined in the data frame.

Usage

1
2
## S4 method for signature 'RmbSpectrum2,data.frame'
setData(s, df, clean = TRUE)

Arguments

s

The RmbSpectrum2 object to modify

df

The data frame with new data

clean

TRUE if slots which aren't present as columns in the data frame should be cleared.

Value

The modified RmbSpectrum2.

Author(s)

stravsmi


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