
Last chance! 50% off unlimited learning
Sale ends in
maturing
glimpse()
is like a transposed version of print()
:
columns run down the page, and data runs across.
This makes it possible to see every column in a data frame.
It's a little like str()
applied to a data frame
but it tries to show you as much data as possible.
(And it always shows the underlying data, even when applied
to a remote data source.)
This generic will be moved to pillar, and reexported from there as soon as it becomes available.
glimpse(x, width = NULL, ...)
An object to glimpse at.
Width of output: defaults to the setting of the option
tibble.width
(if finite) or the width of the console.
Unused, for extensibility.
x original x is (invisibly) returned, allowing glimpse()
to be
used within a data pipe line.
glimpse
is an S3 generic with a customised method for tbl
s and
data.frames
, and a default method that calls str()
.
# NOT RUN {
glimpse(mtcars)
if (requireNamespace("nycflights13", quietly = TRUE)) {
glimpse(nycflights13::flights)
}
# }
Run the code above in your browser using DataLab