Learn R Programming

SciencesPo (version 0.11.21)

h2f: Shows the head and the foot lines of a data frame

Description

Shows the first and last lines of an object simultaneously .

Usage

h2f(x, head = 4, tail = 4, digits = 2, ellipsis = TRUE)

Arguments

x
An object.
head
A numeric value for lines to show.
tail
A numeric value for lines to show.
digits
A numeric value for digits to print.
ellipsis
A logical value. If TRUE, ellipsis will be printed between the first and last lines.

Value

  • An object of the same type.

encoding

UTF-8

See Also

detail

Examples

Run this code
data(galton)
h2f(galton)

Run the code above in your browser using DataLab