First or last rows of a data table, with a log
Arguments
- x
The data table.
- ...
All other arguments of
utils::head()andutils::tail(), i.e.n.
Examples
head(data.table::as.data.table(mtcars), 3)
#> head: removed 29 rows (91%), 3 rows remaining
#> mpg cyl disp hp drat wt qsec vs am gear carb
#> <num> <num> <num> <num> <num> <num> <num> <num> <num> <num> <num>
#> 1: 21.0 6 160 110 3.90 2.620 16.46 0 1 4 4
#> 2: 21.0 6 160 110 3.90 2.875 17.02 0 1 4 4
#> 3: 22.8 4 108 93 3.85 2.320 18.61 1 1 4 1
