data_peek {datawizard} | R Documentation |
Peek at values and type of variables in a data frame
Description
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).
Usage
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,
...
)
Arguments
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. |
Value
A data frame with three columns, containing information about the name, type and first values of the input data frame.
Note
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.
Examples
data(efc)
data_peek(efc)
# show variables two to four
data_peek(efc, select = 2:4)