run_length_encode {walkboutr} | R Documentation |
A function that runs a normal run length encoding and adds some extra variables for use in calculations.
run_length_encode(x)
x |
a vector to run the function on |
a data.frame with columns for lengths, values, end, and begin