agrupar_por_variable <- function(variable){
#Genera grupos en base a los cambios en el valor de otra variable
data.table::rleid(variable)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.