Posts by Breno Benvindo Dos Anjos • 1 point
1 post
-
0
votes1
answer21
viewsQ: Counting of similar objects in the vector
I would like to know how to count sequences of different within a vector containing only 0 and 1. For example, in the vector x <- c(1, 1, 1, 0, 0, 0, 1, 1) the count would give the vector 3 why…
arrayasked Breno Benvindo Dos Anjos 1