count_by_sequence {warehouseTools} | 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.