Description Usage Arguments Examples
Shift run length encoding <NA
>
1 | 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. |
1 2 3 | (x <- na_rle(c(1, NA, NA, 4:7, NA, NA, 10:15, NA)))
na_rle_shift(x, n = 2)
na_rle_shift(x, n = -5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.