# NOT RUN {
# for reproducibility
set.seed(123)
# another possibility
groupedstats::grouped_summary(
data = iris,
grouping.vars = Species,
measures = Sepal.Length:Petal.Width,
measures.type = "numeric"
)
# if no measures are chosen, all relevant columns will be summarized
groupedstats::grouped_summary(
data = ggplot2::msleep,
grouping.vars = vore,
measures.type = "factor"
)
# }
Run the code above in your browser using DataLab