sub-OpenTIMS-method: Get some frames of data.

[,OpenTIMS-methodR Documentation

Get some frames of data.

Description

Get some frames of data.

Usage

## S4 method for signature 'OpenTIMS'
x[i]

Arguments

x

OpenTIMS data instance.

i

Frame numbers to extract.

Value

For the requested frames, a data.frame with columns 'frame', 'scan', 'tof' and 'intensity', one row per peak.

Examples

path.d = system.file("extdata", "test.d", package = "opentimsr")
setup_opensource()
D = OpenTIMS(path.d)
head(D[1])   # first frame
head(D[1:2]) # frames 1 and 2
CloseTIMS(D)

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