# NOT RUN {
library(dplyr)
# Calculate counts
condition_n <- count_data(cox, condition)
# Create a tidy data frame of the count data
tidy_count_data(condition_n)
# With a grouping variable:
cox %>%
group_by(sex) %>%
count_data(condition) %>%
tidy_count_data()
# }
Run the code above in your browser using DataLab