powered by
Preparing dataframe with counts and percentages for categorical variables.
cat_counter(data, main, condition = NULL, ...)
A dataframe (or a tibble) from which variables specified are to be taken. A matrix or tables will not be accepted.
The variable to use as the rows in the contingency table.
The variable to use as the columns in the contingency table.
Additional grouping variables.
# NOT RUN { ggstatsplot:::cat_counter(data = ggplot2::mpg, "drv", cyl, "fl") # }
Run the code above in your browser using DataLab