## Load and visualize a binary dataset:
data(toyMMD)
head(toyMMD)
## Convert this dataframe into a table of sample sizes and frequencies:
tab <- binary_to_table(toyMMD, relative = FALSE)
tab
## Convert this table into relative frequencies:
table_relfreq(tab)
Run the code above in your browser using DataLab