Description Usage Arguments Details Value Examples
From a sequence A A A B B C A A C C C
it will returns 1 2 3 1 2
1 1 2 1 2 3
.
1 | time_index(x)
|
x |
a vector. |
This is basically a wrapper around the rle
function.
A vector of integers of the same length as x
.
1 2 | x <- c("A", "A", "A", "B", "B", "C", "A", "A", "C", "C", "C")
time_index(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.