ListVariables: Function to summarize data in a data frame.

Description Usage Arguments Value Examples

View source: R/Utilities.R

Description

ListVariables takes a data frame and lists all existing variables incl. summary descriptions.

Usage

1

Arguments

data

A data frame.

Value

A character matrix useful to print directly or as input to R-Markdown (e.g., using the kable-function) listing

Variable

Variable name

Missing entries (count)

The number of (formally) missing values (note: 'coded missingness' such a -99 would not be counted as missing and would be an acceptable input value).

Unique entries (count incl missing if applicable)

The number of distinct entry-values, incl. formally missing as one such entry, if applicable.

List of actual entries

Listing actually occuring distinct values in order (typicaly alphabetic order). If there are 11 or more distinct entries the first and last three are printed separated by '(...)' to indicate additional entries in between.

Examples

1

FrThomas/risyphus documentation built on Dec. 6, 2019, 6:27 a.m.