bitChange | R Documentation |
Detect when the values in an ordered vector change
bitChange(x)
x |
vector |
integer vector where the value increases each time the value in
x
changes.
x <- seq_len(5)
all(bitChange(x) == x)
x <- sample(seq_len(5), 20, replace = TRUE)
bitChange(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.