rt_query: Get the retention time for each frame.

View source: R/opentimsr.R

rt_queryR Documentation

Get the retention time for each frame.

Description

Extract all frames corresponding to retention times inside [min_retention_time, max_retention_time] closed borders interval.

Usage

rt_query(
  opentims,
  min_retention_time,
  max_retention_time,
  columns = all_columns
)

Arguments

opentims

Instance of OpenTIMS.

min_retention_time

Lower boundry on retention time.

max_retention_time

Upper boundry on retention time.

columns

Vector of columns to extract. Defaults to all columns.

Value

data.frame with selected columns.

Examples

path.d = system.file("extdata", "test.d", package = "opentimsr")
setup_opensource()
D = OpenTIMS(path.d)
rt_query(D, 0.6, 0.7) # frames recorded between 0.6 and 0.7 seconds
CloseTIMS(D)

opentimsr documentation built on Nov. 5, 2026, 1:08 a.m.