Trim an AbstractMassObject object.
This method trims an AbstractMassObject
object.
That is useful if some mass ranges should be excluded from further analysis.
## S4 method for signature 'AbstractMassObject,numeric' trim(object, range) ## S4 method for signature 'list,numeric' trim(object, range, ...) ## S4 method for signature 'list,missing' trim(object, range, ...)
object |
|
range |
|
... |
arguments to be passed to underlying functions (currently only
|
Sebastian Gibb mail@sebastiangibb.de
## load package library("MALDIquant") ## load example data data("fiedler2009subset", package="MALDIquant") ## select only one spectrum s <- fiedler2009subset[[1]] ## remove all mass lower 3000 trim(s, range=c(3000, Inf)) ## remove all mass higher 8000 trim(s, range=c(0, 8000)) ## remove all mass lower 3000 and higher 8000 trim(s, range=c(3000, 8000)) ## choose largest overlapping mass range for all spectra trim(fiedler2009subset)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.