## removeEmptyMassObjects
## find and remove empty AbstractMassObject objects in a MassObjectsList
##
## params:
## l: list of AbstractMassObject objects
##
## returns:
## a list without empty objects
##
removeEmptyMassObjects <- function(l) {
.stopIfNotIsMassObjectList(l)
## find empty MassPeaks objects
notEmpty <- !(seq_along(l) %in% findEmptyMassObjects(l))
## exclude empty elements
l[notEmpty]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.