Learn R Programming

ffbase (version 0.13.3)

rle_ff: Compute the lengths and values of runs of equal values in a vector

Description

Similar rle in the base package but for ff vectors.

Usage

rle_ff(x, ...)

Arguments

x

an ff vector

...

further arguments are passed on the chunk

Value

An object of class rle which is a list with components

lengths

an integer vector containing the length of each run.

values

a vector of the same length as `lenghts' with the corresponding values.

See Also

rle for an implementation that runs on ordinary vectors.