View source: R/utils_vectors.R
| rle_df | R Documentation |
Given an rle this function will return a data.frame of starts, ends, and indexes thereof of the run lengths.
Credit: https://stackoverflow.com/questions/43875716/find-start-and-end-positions-indices-of-runs-consecutive-values
rle_df(x)
x |
|
(data.frame) |
with length, values, start and end indices. |
Other vectors:
len_unique(),
names_values_switch(),
rle_groups(),
rle_seq(),
sort_by_names(),
true_names(),
unify_vec_preserve_order(),
unique_with_names(),
vlookup(),
vlookup_from_ref(),
zchar_remove()
rle_df(sample(c(TRUE,FALSE), replace = TRUE, 100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.