This function is called by rle2 to identify runs of repeated numeric values. Not intended for direct use.
Usage
rle2.char(x, n, nmax, indices)
Arguments
x
Input vector containing character data.
n
Length of x.
nmax
Maximum number of distinct runs.
indices
If set to 0, only run values and lengths are recorded; if set to 1, start/stop positions of runs are also recorded.
Value
The function returns a 2- or 4-column matrix, where each row contains information on a particular run of repeated values.
References
Acknowledgment: This material is based upon work supported by the National Science Foundation Graduate Research Fellowship under Grant No. DGE-0940903.