Filter GCIMSSample samples by retention time

# S4 method for GCIMSSample
filterRt(object, rt_range)

Arguments

object

A GCIMSSample object

rt_range

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

Value

A subset of the sample, only in the selected rt_range

Examples

sample_file <- system.file("extdata", "sample_formats", "small.mea.gz", package = "GCIMS")
s <- read_mea(sample_file)
s <- filterRt(s, rt_range = c(5, 50))