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.)

See format_glimpse() for details on the formatting.

# S3 method for tidySingleCellExperiment
glimpse(x, width = NULL, ...)

Arguments

x

An object to glimpse at.

width

Width of output: defaults to the setting of the width option (if finite) or the width of the console.

...

Unused, for extensibility.

Value

x original x is (invisibly) returned, allowing glimpse() to be used within a data pipe line.

S3 methods

glimpse is an S3 generic with a customised method for tbls and data.frames, and a default method that calls str().

Examples

data(pbmc_small)
pbmc_small |> glimpse()
#> Formal class 'SingleCellExperiment' [package "SingleCellExperiment"] with 9 slots
#>   ..@ int_elementMetadata:Formal class 'DFrame' [package "S4Vectors"] with 6 slots
#>   ..@ int_colData        :Formal class 'DFrame' [package "S4Vectors"] with 6 slots
#>   ..@ int_metadata       :List of 3
#>   .. ..$ version          :Classes 'package_version', 'numeric_version'  hidden list of 1
#>   .. ..$ spike_names      : chr(0) 
#>   .. ..$ size_factor_names: chr(0) 
#>   ..@ rowRanges          :Formal class 'CompressedGRangesList' [package "GenomicRanges"] with 5 slots
#>   ..@ colData            :Formal class 'DFrame' [package "S4Vectors"] with 6 slots
#>   ..@ assays             :Formal class 'SimpleAssays' [package "SummarizedExperiment"] with 1 slot
#>   ..@ NAMES              : NULL
#>   ..@ elementMetadata    :Formal class 'DFrame' [package "S4Vectors"] with 6 slots
#>   ..@ metadata           : list()