NA
>na_rle_shift.Rd
Shift run length encoding <NA
>
na_rle_shift(x, n = 1L)
x | An object returned by |
---|---|
n | An integer shifts the position. If positive, shifts to the right, otherwise to the left. |
#> <Run Length Encoding <NA>[3]> #> $lengths: <int> 2 2 1 #> $indices: <int> 2 8 16na_rle_shift(x, n = 2)#> <Run Length Encoding <NA>[3]> #> $lengths: <int> 2 2 1 #> $indices: <dbl> 4 10 18na_rle_shift(x, n = -5)#> <Run Length Encoding <NA>[3]> #> $lengths: <int> 2 2 1 #> $indices: <dbl> -3 3 11