Method to generate an idx vector of peaks that pass the filter criteria after peak characterization.

# S4 method for cpc
peaksToKeep(x, returnBoolean = FALSE)

Arguments

x

A cpc object

returnBoolean

logical indicating if a vector of logicals should be returned instead of the row numbers (default: FALSE)

Value

An integer vector of peak idx that pass the criteria or if returnBoolean is TRUE, a vector of logicals indicating, for each peak, if they pass the criteria