summary_data: Print a descriptive summary of a data frame.

View source: R/util.R

summary_dataR Documentation

Print a descriptive summary of a data frame.

Description

The function prints a summary of the data. Similar to the function str, but easier readable.

Usage

summary_data(data, print = TRUE, n = 10)

Arguments

data

A data frame.

print

Logical: whether or not to print the summary.

n

Number: maximum number of values being mentioned in the summary. If NULL all values are being mentioned. Defaults to 10.

Value

Optionally returns a named list with info.

Author(s)

Jacolien van Rij

See Also

Other Utility functions: convertNonAlphanumeric(), corfit(), diff_terms(), find_difference(), missing_est(), modeledf(), observations(), print_summary(), refLevels(), res_df(), timeBins()

Examples

data(simdat)
summary_data(simdat)

itsadug documentation built on June 17, 2022, 5:05 p.m.