peek: Take a Quick Overview of Your Data

View source: R/peek.R

peekR Documentation

Take a Quick Overview of Your Data

Description

peek() provides a transposed view of your dataset: columns are displayed vertically, while the data for each column is shown horizontally. This layout allows you to inspect all the columns of a data.frame at a glance. It serves as a convenient wrapper around utils::str(), with the added benefit of invisibly returning the input object, making it suitable for use in data pipelines.

Usage

peek(x, width = getOption("width"), ...)

Arguments

x

The object to be inspected.

width

integer(1). Specifies the maximum width of the output.

...

Additional arguments to pass to utils::str().

Value

The input object x, returned invisibly.

Examples

peek(mtcars)

logos documentation built on April 4, 2025, 4:42 a.m.