Print head and tail of a data.frame
e_headtail(x, n = 3L, which_col = NULL, ...)
data.frame or vector
number of top rows and bottom rows to print, it prints 2n rows
selected columns, if desired
passed to head() and tail() functions
dat_ht the head and tail of the data.frame
e_headtail(dat_mtcars_e)
#> model mpg cyl disp hp drat wt qsec vs am gear carb
#> 1 Mazda RX4 21.0 six 160 110 3.90 2.620 16.46 V-shaped manual 4 4
#> 2 Mazda RX4 Wag 21.0 six 160 110 3.90 2.875 17.02 V-shaped manual 4 4
#> 3 Datsun 710 22.8 four 108 93 3.85 2.320 18.61 straight manual 4 1
#> 30 Ferrari Dino 19.7 six 145 175 3.62 2.770 15.50 V-shaped manual 5 6
#> 31 Maserati Bora 15.0 eight 301 335 3.54 3.570 14.60 V-shaped manual 5 8
#> 32 Volvo 142E 21.4 four 121 109 4.11 2.780 18.60 straight manual 4 2