These functions take a dataframe as argument and return a list of statistcs in the form accepted by desctable.
stats_default(data)stats_normal(data)
stats_nonnormal(data)
stats_auto(data)
The dataframe to apply the statistic to
A list of statistics to use, potentially assessed from the dataframe
Already defined are
stats_default with length, %, mean, sd, med and IQR
stats_normal with length, %, mean and sd
stats_nonnormal with length,
stats_auto, which picks stats depending of the data
You can define your own automatic functions, as long as they take a dataframe as argument and return a list of functions or formulas defining conditions to use a stat function.