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{
7glimpse(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)
14or the width of the console.}
15
16\item{...}{Unused, for extensibility.}
17}
18\value{
19x original x is (invisibly) returned, allowing \code{glimpse()} to be
20used within a data pipe line.
21}
22\description{
23\code{glimpse()} is like a transposed version of \code{print()}:
24columns run down the page, and data runs across.
25This makes it possible to see every column in a data frame.
26It's a little like \code{\link[=str]{str()}} applied to a data frame
27but it tries to show you as much data as possible.
28(And it always shows the underlying data, even when applied
29to a remote data source.)
30
31See \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{
40glimpse(mtcars)
41
42\dontshow{if (rlang::is_installed("nycflights13")) (if (getRversion() >= "3.4") withAutoprint else force)(\{ # examplesIf}
43glimpse(nycflights13::flights)
44\dontshow{\}) # examplesIf}
45}
46