R: Compute the lengths and values of runs of equal values in a...

rle_ff {ffbase} | R Documentation

## 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.

[Package ffbase version 0.13.1 Index]