Analysis of Categorical Data with R