# NOT RUN {
# default grouping function: mean
desc_groups(data=mtcars, group_var="cyl")
# using the median as the grouping function
desc_groups(data=mtcars, group_var="cyl", group_func=median)
# using the max as the grouping function
desc_groups(data=mtcars, group_var="gear", group_func=max)
# }
Run the code above in your browser using DataLab