Filter GCIMSSample samples by drift time

# S4 method for GCIMSSample
filterDt(object, dt_range)

Arguments

object

A GCIMSSample object

dt_range

The minimum and maximum drift times to extract (length 2 vector)

Value

A subset of the sample, only in the selected dt_range

Examples

sample_file <- system.file("extdata", "sample_formats", "small.mea.gz", package = "GCIMS")
s <- read_mea(sample_file)
s <- filterDt(s, dt_range = c(5, 9.5))