contents {qacBase}R Documentation

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

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

contents(cars74)


[Package qacBase version 1.0.3 Index]