count_true | R Documentation |
Cumulative count of consecutive TRUE
count_true(x)
x |
Logical vector. |
x <- c(TRUE, TRUE, FALSE, TRUE)
count_true(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.