Take every nth row in the DataFrame
Description
Take every nth row in the DataFrame
Usage
<DataFrame>$gather_every(n, offset = 0)
Arguments
n
|
Gather every n -th row.
|
offset
|
Starting index. |
Value
A DataFrame
Examples
#> shape: (2, 2)
#> ┌─────┬─────┐
#> │ a ┆ b │
#> │ --- ┆ --- │
#> │ i32 ┆ i32 │
#> ╞═════╪═════╡
#> │ 1 ┆ 5 │
#> │ 3 ┆ 7 │
#> └─────┴─────┘
#> shape: (2, 2)
#> ┌─────┬─────┐
#> │ a ┆ b │
#> │ --- ┆ --- │
#> │ i32 ┆ i32 │
#> ╞═════╪═════╡
#> │ 2 ┆ 6 │
#> │ 4 ┆ 8 │
#> └─────┴─────┘