Learn R Programming

desctable (version 0.3.1)

stats_auto: Function to create a list of statistics to use in desctable

Description

This function takes a dataframe as argument and returns a list of statistcs in the form accepted by desctable.

Usage

stats_auto(data)

Value

A list of statistics to use, assessed from the content of the dataframe

Arguments

data

The dataframe to apply the statistic to

Details

You can define your own automatic function, as long as it takes a dataframe as argument and returns a list of functions, or formulas defining conditions to use a stat function.