consecutive_group | R Documentation |
Function to add a new column indicating group ID based on sequential data
consecutive_group(vec)
vec |
the vector |
a vector where the ID depends on whether the value of x is sequential. For example, indicate whether a series of years is sequential, or if there are say three groups of sequential years. Break up the data by groups with consecutive values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.