rleC {TSrepr}R Documentation

RLE (Run Length Encoding) written in C++

Description

The rleC computes RLE from bit-level (clipping or trending representation) vector.

Usage

rleC(x)

Arguments

x

the integer vector (from clipping or trending)

Value

the list of values and counts of zeros and ones

Examples

# clipping
clipped <- clipping(rnorm(50))
rleC(clipped)
# trending
trended <- trending(rnorm(50))
rleC(trended)


[Package TSrepr version 1.1.0 Index]