This is a method for the head()
generic.
See "Fallbacks" section for differences in implementation.
Return the first rows of a data.frame
Usage
# S3 method for class 'duckplyr_df'
head(x, n = 6L, ...)
Fallbacks
There is no DuckDB translation in head.duckplyr_df()
with a negative
n
.
These features fall back to head()
, see vignette("fallback")
for details.
Examples
head(mtcars, 2)
#> mpg cyl disp hp drat wt qsec vs am gear carb
#> Mazda RX4 21 6 160 110 3.9 2.620 16.46 0 1 4 4
#> Mazda RX4 Wag 21 6 160 110 3.9 2.875 17.02 0 1 4 4