Gather every nth element
Description
Gather every nth value in the Series and return as a new Series.
Usage
<Expr>$gather_every(n, offset = 0)
Arguments
n
|
Positive integer. |
offset
|
Starting index. |
Value
Expr
Examples
#> shape: (5, 1)
#> ┌─────┐
#> │ a │
#> │ --- │
#> │ i32 │
#> ╞═════╡
#> │ 0 │
#> │ 6 │
#> │ 12 │
#> │ 18 │
#> │ 24 │
#> └─────┘