Summary function - display head and tail in a single data.frame The original code for this function was first written for 'psych' R package here we have modified it a bit
head_tail(x, hlength = 4, tlength = 4, digits = 4, ellipsis = TRUE)
Print table's head and tail
A matrix or data frame or free text
The number of lines at the beginning to show
The number of lines at the end to show
Round off the data to digits
separate the head and tail with dots