The first hlength and last tlength lines of a matrix or data frame with an ellipsis in between. If the input is neither a matrix nor data frame, the output will be the first hlength and last tlength lines.
topBottom is just a call to headTail with ellipsis = FALSE and returning a matrix output.