View source: R/consecutive_add.R
This function will count repeat observations and add them together it creates a new data frame for duration of each event
1 | consecutive_add(data, threshold, use_index = F, index_value = NULL)
|
data |
the a data frame or vector to count |
threshold |
what value should the distinguishing be? |
use_index |
boolean, should it index a value for start and end? |
index_value |
if use_index true, provide a value for labels |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.