Debian Codegraph @

man/glimpse.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/glimpse.R
3 \name{glimpse}
4 \alias{glimpse}
5 \title{Get a glimpse of your data}
6 \usage{
7 glimpse(x, width = NULL, ...)
8 }
9 \arguments{
10 \item{x}{An object to glimpse at.}
11
12 \item{width}{Width of output: defaults to the setting of the
13 \code{width} \link[=pillar_options]{option} (if finite)
14 or the width of the console.}
15
16 \item{...}{Unused, for extensibility.}
17 }
18 \value{
19 x original x is (invisibly) returned, allowing \code{glimpse()} to be
20 used within a data pipe line.
21 }
22 \description{
23 \code{glimpse()} is like a transposed version of \code{print()}:
24 columns run down the page, and data runs across.
25 This makes it possible to see every column in a data frame.
26 It's a little like \code{\link[=str]{str()}} applied to a data frame
27 but it tries to show you as much data as possible.
28 (And it always shows the underlying data, even when applied
29 to a remote data source.)
30
31 See \code{\link[=format_glimpse]{format_glimpse()}} for details on the formatting.
32 }
33 \section{S3 methods}{
34
35 \code{glimpse} is an S3 generic with a customised method for \code{tbl}s and
36 \code{data.frames}, and a default method that calls \code{\link[=str]{str()}}.
37 }
38
39 \examples{
40 glimpse(mtcars)
41
42 \dontshow{if (rlang::is_installed("nycflights13")) withAutoprint(\{ # examplesIf}
43 glimpse(nycflights13::flights)
44 \dontshow{\}) # examplesIf}
45 }