You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
683B

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/stats.R
  3. \name{stats_auto}
  4. \alias{stats_auto}
  5. \title{Function to create a list of statistics to use in desctable}
  6. \usage{
  7. stats_auto(data)
  8. }
  9. \arguments{
  10. \item{data}{The dataframe to apply the statistic to}
  11. }
  12. \value{
  13. A list of statistics to use, assessed from the content of the dataframe
  14. }
  15. \description{
  16. This function takes a dataframe as argument and returns a list of statistcs in the form accepted by desctable.
  17. }
  18. \details{
  19. 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.
  20. }