subSampleRle: Subsets an Rle object

View source: R/rangesTools.R

subSampleRleR Documentation

Subsets an Rle object

Description

Subsets an Rle object.

Usage

subSampleRle(x, idx)

Arguments

x

an object of the class Rle.

idx

an integer vector specifying which indices to keep.

Value

Returns a subset of an Rle object as an integer or numeric vector.

Author(s)

Rehrauer, Hubert

Schmid, Peter

Examples

rleobj = Rle(c(1, 1, 1, 2, 2, 3, 2, 2))
subSampleRle(rleobj, 1:8)

uzh/ezRun documentation built on Dec. 26, 2024, 9:53 a.m.