Description Usage Arguments Value
This is a faster version of base R function rle
. Returns
matrix where first column is value, second column is length. For optimal
speed, use integer = TRUE
if x
is an integer vector and
integer = FALSE
otherwise. Compatible with logical vectors (use
integer = TRUE
) but replaces TRUE/FALSE with 1/0; not compatible with
character vectors.
1 |
x |
Integer, numeric, or logical vector. |
integer |
Logical value for whether |
Integer or numeric matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.