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

printHead {BBmisc} | R 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.

[Package BBmisc version 1.11 Index]