rleC: RLE (Run Length Encoding) written in C++

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

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

Usage

1
rleC(x)

Arguments

x

the integer vector (from clipping or trending)

Value

the list of values and counts of zeros and ones

Examples

1
2
3
4
5
6
# clipping
clipped <- clipping(rnorm(50))
rleC(clipped)
# trending
trended <- trending(rnorm(50))
rleC(trended)

TSrepr documentation built on July 13, 2020, 9:07 a.m.