Skip to content
Snippets Groups Projects
Commit 72707c6c authored by Treutler's avatar Treutler
Browse files

Minor changes

parent 97087e63
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,8 @@ setMethod("getData", c("RmbSpectrum2"), function(s)
{
peaks <- s@peaksCount
cols <- c("mz", "intensity", "satellite", "low", "rawOK", "good", "mzCalc", "formula", "dbe", "formulaCount", "dppm", "dppmBest")
cols.isFilled <- unlist(lapply(cols, function(col) length(slot(s, col)) == peaks))
slotLength <- unlist(lapply(cols, function(col) length(slot(s, col))))
cols.isFilled <- slotLength == peaks
cols.filled <- cols[cols.isFilled]
data <- lapply(cols.filled, function(col) slot(s, col))
data$stringsAsFactors <- FALSE
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment