powered by
These are methods for the base generics head() and tail(). They are not translated.
head()
tail()
# S3 method for dtplyr_step head(x, n = 6L, ...)# S3 method for dtplyr_step tail(x, n = 6L, ...)
# S3 method for dtplyr_step tail(x, n = 6L, ...)
A lazy_dt()
lazy_dt()
Number of rows to select. Can use a negative number to instead drop rows from the other end.
Passed on to head()/tail().
library(dplyr, warn.conflicts = FALSE) dt <- lazy_dt(data.frame(x = 1:10)) # first three rows head(dt, 3) # last three rows tail(dt, 3) # drop first three rows tail(dt, -3)
Run the code above in your browser using DataLab