Skip to contents

Create a sequence from the start to the end for a given value from an rle_df for indexing

Usage

rle_seq(rle_df, value)

Arguments

rle_df

(tbl) See rle_df

value

(any) Value to filter for in the values column. Require the values in the value column to be unique.

Value

(dbl)

Examples

rle_seq(rle_df(rep(letters[1:3], each = 3)), "c")
#> [1] 7 8 9