powered by
Slice data by row number
slice_data(.data, ...)
Input data frame
Expression to evaluate to integer row positions
.data of evaluated row positions
# 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