Multi-spct transform methodsSource:
Apply a function or operator to a collection of spectra.
msmsply(mspct, .fun, ..., .parallel = FALSE, .paropts = NULL) msdply( mspct, .fun, ..., idx = NULL, col.names = NULL, .parallel = FALSE, .paropts = NULL ) mslply(mspct, .fun, ..., .parallel = FALSE, .paropts = NULL) msaply(mspct, .fun, ..., .drop = TRUE, .parallel = FALSE, .paropts = NULL)
an object of class generic_mspct or a derived class
other arguments passed to .fun
if TRUE, apply function in parallel, using parallel backend provided by foreach
a list of additional options passed into the foreach function when parallel computation is enabled. This is important if (for example) your code relies on external data or packages: use the .export and .packages arguments to supply them so that all cluster nodes have the correct environment set up for computing.
character Name of the column with the names of the members of the collection of spectra.
character Names to be used for data columns.
should extra dimensions of length 1 in the output be dropped, simplifying the output. Defaults to TRUE