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.


berndbischl/BBmisc documentation built on Jan. 6, 2023, 12:32 p.m.