Learn R Programming

walkboutr (version 0.6.0)

run_length_encode: Run Length Encoding:

Description

A function that runs a normal run length encoding and adds some extra variables for use in calculations.

Usage

run_length_encode(x)

Value

a data.frame with columns for lengths, values, end, and begin

Arguments

x

a vector to run the function on