| rleNA | R Documentation | 
rle() with NA values treated as real valuesrle() with NA values treated as real values
rleNA(x)
x | 
 vector  | 
relative length encoding of vector
x <- c(0,0,0,NA,NA,NA,1,1,1)
rle(x)
rleNA(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.