Learn R Programming

tbltools (version 0.1.0)

slice_data: Slice data

Description

Slice data by row number

Usage

slice_data(.data, ...)

Arguments

.data

Input data frame

...

Expression to evaluate to integer row positions

Value

.data of evaluated row positions

Examples

Run this code
# NOT RUN {
## data set
d <- tbl_data(x = rnorm(10), y = rnorm(10))

## slice first 4 rows
slice_data(d, 1:4)
# }

Run the code above in your browser using DataLab