Learn R Programming

desctable (version 0.3.0)

statTable: Generate the table of all statistics for all variables

Description

If stats is a list of functions or purrr::map like formulas, use them. If it is a single function, use it with the entire data as its argument to produce a list of statistical functions to use.

Usage

statTable(data, stats)

Arguments

data

The dataframe to apply the statistic to

stats

A list of named statistics to use

Value

A dataframe of all statistics for all variables