Learn R Programming

UsingR (version 2.0-8)

headtail: Show head and tail

Description

helper function to shorten display of a data frame

Usage

headtail(x, k = 3)

Value

No return value. Uses cat to show data

Arguments

x

a data frame

k

number of rows at top and bottom to show.

Examples

Run this code
headtail(mtcars)

Run the code above in your browser using DataLab