Find distribution of consecutive zeros – stackoverflow.com

I have a vector, say x which contains only the integer numbers 0,1 and 2. For example; x <- c(0,1,0,2,0,0,1,0,0,1,0,0,0,1,0) From this I would like to extract how many times zero occurs in each ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Find distribution of consecutive zeros – stackoverflow.com"