Learn R Programming

opentimsr (version 1.0.13)

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

Description

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

Usage

# S4 method for 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

Run this code
# NOT RUN {
D = OpenTIMS('path/to/your/folder.d')
print(head(range(D, 10,100,3))) # each third frame from 10 to 100.
# }

Run the code above in your browser using DataLab