This document describes how to generate frequency tables and distributions in R to summarize categorical data. It discusses:
1. Creating simple frequency tables using the table() function to show counts of one or two categorical variables.
2. Generating two-way contingency tables using table() or xtabs() to examine relationships between two categorical variables.
3. Computing table margins with margin.table() and relative frequencies with prop.table() or converting tables to percentages.