View source: R/consecutive_id.R
consecutive_id | R Documentation |
Generate a unique id for runs of consecutive values
consecutive_id(...)
... |
Vectors of values |
x <- c(1, 1, 2, 2, 1, 1)
consecutive_id(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.