data_peek | R Documentation |
This function creates a table a data frame, showing all column names, variable types and the first values (as many as fit into the screen).
data_peek(x, ...)
## S3 method for class 'data.frame'
data_peek(
x,
select = NULL,
exclude = NULL,
ignore_case = FALSE,
regex = FALSE,
width = NULL,
verbose = TRUE,
...
)
x |
A data frame. |
... |
not used. |
select |
Variables that will be included when performing the required tasks. Can be either
If |
exclude |
See |
ignore_case |
Logical, if |
regex |
Logical, if |
width |
Maximum width of line length to display. If |
verbose |
Toggle warnings. |
A data frame with three columns, containing information about the name, type and first values of the input data frame.
To show only specific or a limited number of variables, use the
select
argument, e.g. select = 1:5
to show only the first five variables.
data(efc)
data_peek(efc)
# show variables two to four
data_peek(efc, select = 2:4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.