# NOT RUN {
# for reproducibility
set.seed(123)
# only with one grouping variable
groupedstats::grouped_wilcox(
data = dplyr::filter(.data = ggplot2::diamonds, color == "E" | color == "J"),
dep.vars = depth:table,
indep.vars = color,
grouping.vars = clarity,
paired = FALSE
)
# }
Run the code above in your browser using DataLab