count_by_sequence | R Documentation |
This internal function counts the number of sequential occurrences of values in a vector and returns the results as a data frame.
count_by_sequence(v)
v |
A vector of values to be analyzed. |
A data frame with two columns: 'id' representing the unique values and 'count' representing the number of consecutive occurrences of each value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.