peek | R Documentation |
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.
peek(x, width = getOption("width"), ...)
x |
The object to be inspected. |
width |
|
... |
Additional arguments to pass to |
The input object x
, returned invisibly.
peek(mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.