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

View source: R/stats.R

stats_autoR Documentation

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)

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.

Value

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


desctable documentation built on March 24, 2022, 5:07 p.m.