Learn R Programming

UsingR (version 2.0-7)

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

Run this code
# NOT RUN {
headtail(mtcars)
# }

Run the code above in your browser using DataLab