read_glimpse: Read the results of 'tibble::glimpse' back into a data frame

Description Usage Arguments Details Value Examples

View source: R/str.R

Description

read_glimpse and read.glimpse read the data printed by tibble::glimpse() back into a data frame.

Usage

1
2
3
4
5
6
read_glimpse(
  file = clipr::read_clip(),
  class = c("tbl_df", "tbl", "data.frame")
)

read.glimpse(file = clipr::read_clip(), class = "data.frame")

Arguments

file

Character. A path to a file, a connection, or literal data (either a single string or a vector of lines). If unspecified, reads from the clipboard.

class

A character vector of classes to assign to the results.

Details

read_glimpse and read.glimpse are roughly inverses of tibble::glimpse, except:

Value

A data frame of the class specified by the class parameter.

Examples

1
2
3
4
5
x <- capture.output(tibble::glimpse(iris))

read_glimpse(x)

read.glimpse(x)

alistaire47/read.so documentation built on April 23, 2020, 12:50 p.m.