Show head and tail
helper function to shorten display of a data frame
headtail(x, k = 3)
x
k
No return value. Uses cat to show data
cat
headtail(mtcars)
Useful links