contents: Detailed description of a data frame

Description Usage Arguments Details Value Examples

View source: R/contents.R

Description

contents provides a comprehensive description of a data frame, including summary statistics for both quantitative and categorical variables

Usage

1
contents(data, digits = 2, maxcat = 10, label_length = 20)

Arguments

data

a data frame

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.

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.

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

Examples

1

Rkabacoff/qacr documentation built on March 20, 2021, 3:03 p.m.