I see this come up a lot, and people just use data.table::rleid().
I already added vctrs::vec_identify_runs() for this, we just need to formally expose it in a more user friendly way. Probably as something like runs(...) since a ... style interface would be more useful interactively
Like this example https://stackoverflow.com/questions/21421047/using-ddply-to-apply-a-function-to-a-group-of-rows
I see this come up a lot, and people just use
data.table::rleid()
.I already added
vctrs::vec_identify_runs()
for this, we just need to formally expose it in a more user friendly way. Probably as something likeruns(...)
since a...
style interface would be more useful interactively