Compute the lengths and values of runs of
almost.equal values in a vector.
rle2(x, tolerance = sqrt(.Machine$double.eps))numeric vector.
numeric. Differences smaller than tolerance are considered as equal.
The default value is close to 1.5e-8.
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 lengths with the
corresponding values.
almost.equal in this package;
rle in package base.