length-OpenTIMS-method: Get the overall number of peaks.

length,OpenTIMS-methodR Documentation

Get the overall number of peaks.

Description

Get the overall number of peaks.

Usage

## S4 method for signature 'OpenTIMS'
length(x)

Arguments

x

OpenTIMS data instance.

Value

The total number of peaks in the dataset.

Examples

path.d = system.file("extdata", "test.d", package = "opentimsr")
setup_opensource()
D = OpenTIMS(path.d)
length(D) # number of peaks in the dataset
CloseTIMS(D)

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