Skip to content
Prev 173310 / 398503 Next

Repeated values

try this:

x <- c(4, 3, 0, 3, 4, 1, 0, 1, 4, 4, 3, 4, 3, 4)
rle(x)$values


I hope it helps.

Best,
Dimitris
Tammy Ma wrote: