peek: Take a Peek at Your Data This is a variant on...

Usage Arguments Value S3 methods Examples

Usage

1
peek(x, width = NULL, ...)

Arguments

x

An object to peek at.

width

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

...

Other arguments passed on to individual methods.

Value

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

S3 methods

'peek' is an S3 generic with a customised method for 'tbl's and 'data.frame's, and a default method that calls [str()].

Examples

1
2
3
4
5
6
peek(mtcars)

if (!requireNamespace("nycflights13", quietly = TRUE))
  stop("Please install the nycflights13 package to run the rest of this example")

peek(nycflights13::flights)

rcorty/CortyKit documentation built on May 27, 2019, 3:03 a.m.