sub_seq | R Documentation |
Find sub-sequences of identical elements in a vector.
sub_seq(x, item = NULL)
subSeq(x, item = NULL)
x |
An atomic vector or a factor. |
item |
Optionally a specific value to look for in |
A dataframe.
Søren Højsgaard, sorenh@math.aau.dk
rle
x <- c(1, 1, 1, 0, 0, 1, 1, 1, 2, 2, 2, 1, 2, 2, 2, 3)
sub_seq(x)
sub_seq(x, item=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.