headtail function

Show head and tail

Show head and tail

helper function to shorten display of a data frame

headtail(x, k = 3)

Arguments

  • x: a data frame
  • k: number of rows at top and bottom to show.

Returns

No return value. Uses cat to show data

Examples

headtail(mtcars)
  • Maintainer: John Verzani
  • License: GPL (>= 2)
  • Last published: 2022-01-11

Useful links