# NOT RUN {
iris %>%
desc_table()
# Does the same as stats_auto here
iris %>%
desc_table("N" = length,
"Min" = min,
"Q1" = ~quantile(., .25),
"Med" = median,
"Mean" = mean,
"Q3" = ~quantile(., .75),
"Max" = max,
"sd" = sd,
"IQR" = IQR)
# With grouping on a factor
iris %>%
group_by(Species) %>%
desc_table(.auto = stats_auto)
# }
Run the code above in your browser using DataLab