range-OpenTIMS-method: Select a range of frames to extract.

range,OpenTIMS-methodR Documentation

Select a range of frames to extract.

Description

This is similar to using the from:to:by operator in Python.

Usage

## S4 method for signature 'OpenTIMS'
range(x, from, to, by = 1L)

Arguments

x

OpenTIMS data instance.

from

The first frame to extract.

to

The last+1 frame to extract. Frame with that number will not get extracted, but some below that number might.

by

Extract each by-th frame

Examples

## Not run: 
D = OpenTIMS('path/to/your/folder.d')
print(head(range(D, 10,100,3))) # each third frame from 10 to 100.

## End(Not run)

opentimsr documentation built on March 30, 2022, 1:06 a.m.