streak | R Documentation |
Streaks are also known as run lengths.
streak(event, only_true = TRUE)
streak_max(event)
streak_group(streak_max)
event |
A logical vector indicating if an event occurred or not. |
only_true |
Should only events that are |
streak_max |
In the case of |
Integer vector with the length of event
or streak_max
.
Stuart K. Grange
rle
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.