Learn R Programming

vectra (version 0.6.2)

slice: Select rows by position

Description

Select rows by position

Usage

slice(.data, ...)

Value

A data.frame with the selected rows.

Arguments

.data

A vectra_node object.

...

Integer row indices (positive or negative).

Examples

Run this code
f <- tempfile(fileext = ".vtr")
write_vtr(mtcars, f)
tbl(f) |> slice(1, 3, 5)
unlink(f)

Run the code above in your browser using DataLab