rleseq | R Documentation |
returns unique id within each unique element of a vector or set of provided vectors and also a running id within each unique element
rleseq(
...,
clump = TRUE,
recurs = FALSE,
na.clump = TRUE,
na.ignore = FALSE,
sep = paste0(" ", rand.string(length = 6), " "),
use.data.table = FALSE
)
... |
Vector(s) to identify with unique id and a running id within each unique id |
clump |
a logical specifying if duplicates are to be counted together |
recurs |
a logical that is meant to only be set by the function when using clump = TRUE |
a list of idx and seq
Kevin Hadi
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.