This function retains only BoxCar spectra in an MSnExp instance. BoxCar spectra are defined as those that don't have an NA in the feature variable bc_groups.

filterBoxCar(x, fcol = "bc_groups")

Arguments

x

An instance of class MSnExp.

fcol

character(1) indicating the feature variable defining the BoxCar spectra, typically generated by bc_groups(). Default is bc_groups.

Value

An MSnExp containing only BoxCar spectra.