Description Usage Arguments Details Value Examples
read_glimpse
and read.glimpse
read the data printed
by tibble::glimpse()
back into a data frame.
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")
|
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. |
read_glimpse
and read.glimpse
are roughly inverses of tibble::glimpse
,
except:
they subset to rows where the input contains the complete data for the observation,
list and matrix columns are unsupported and may lead to unexpected behavior, and
since glimpse
does not provide attributes or data frame classes,
attributes are dropped, and
class is assigned as supplied when called, defaulting to a tibble for
read_glimpse
and a data.frame for read.glimpse
.
A data frame of the class specified by the class
parameter.
1 2 3 4 5 | x <- capture.output(tibble::glimpse(iris))
read_glimpse(x)
read.glimpse(x)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.