Rdocumentation
powered by
Learn R Programming
RMassBank (version 2.0.0)
setData: Set
RmbSpectrum2
data from data.frame
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
"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
.