Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

headtail

Show head and tail


Description

helper function to shorten display of a data frame

Usage

headtail(x, k = 3)

Arguments

x

a data frame

k

number of rows at top and bottom to show.

Value

No return value. Uses cat to show data

Examples

headtail(mtcars)

UsingR

Data Sets, Etc. for the Text "Using R for Introductory Statistics", Second Edition

v2.0-6
GPL (>= 2)
Authors
John Verzani <verzani@math.csi.cuny.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.