powered by
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)
A data frame with two columns: `id` representing the unique values and `count` representing the number of consecutive occurrences of each value.
A vector of values to be analyzed.