powered by
Calculates and prints frequency counts and percentages for binomial (two-level) categorical variables.
print_binomial(x, digits = 1, width = 15)
A tibble with one row per level for each categorical level containing the following columns:
Character vector specifying the name of each variable.
Character vector specifying the category level for each variable.
Character vector combining the frequency count and the percentage for each level.
Data frame, matrix, or vector containing binomial variables.
Integer specifying the number of decimal places for the test statistic.
Integer specifying the maximum width for wrapping text.
x <- data.frame(A = sample(c("X", "Y"), 100, replace = TRUE)) print_binomial(x) print_binomial(x, digits = 2, width = 5)
Run the code above in your browser using DataLab