contents: Detailed description of a data frame
Description
contents
provides a comprehensive description of a data
frame, including summary statistics for both quantitative and
categorical variables
Usage
contents(data, digits = 2, maxcat = 10, label_length = 20)
Arguments
digits
number of decimal digits for statistics.
maxcat
maximum number of levels of a character/factor
variable to print.
label_length
maximum length of factor level label
to print. Longer labels will be truncated.
Value
a list with 6 components:
- dfname
name of data frame
- nrow
number of rows
- ncol
number of columns
- overall
data frame of overall dataset characteristics
- qvars
data frame with summary statistics for quantitative variables
- cvars
data frame with summary statistics for categorical variables
Details
Prints a comprehensive description of a data frame via
several tables, a general summary table and tables that provide
a breakdown of quantitative and categorical variables.
Examples
Run this code# NOT RUN {
contents(cars74)
# }
Run the code above in your browser using DataLab