Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Note

The resulting rle object is a memory object and must fit into memory.

See Also

rle for an implementation that runs on ordinary vectors.


ffbase

Basic Statistical Functions for Package 'ff'

v0.13.3
GPL-3
Authors
Edwin de Jonge, Jan Wijffels, Jan van der Laan
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.