printHead: More meaningful 'head(df)' output.

View source: R/printHead.R

printHeadR Documentation

More meaningful head(df) output.

Description

The behaviour is similar to print(head(x, n)). The difference is, that if the number of rows in a data.frame/matrix or the number of elements in a list or vector is larger than n, additional information is printed about the total number of rows or elements respectively.

Usage

printHead(x, n = 6L)

Arguments

x

[data.frame | matrix | list | vector]
Object.

n

[integer(1)]
Single positive integer: number of rows for a matrix/data.frame or number of elements for vectors/lists respectively.

Value

Nothing.


BBmisc documentation built on Sept. 29, 2022, 5:12 p.m.

Related to printHead in BBmisc...