I'm having trouble with something that ought to be so easy! I've looked into frequency tables in R, but I'm at a loss for how to proceed.
I have a data file that contains data from various questionnaires. For instance, the first questionnaire has ten items and I have a separate column for each item or variable, so questions 1, 2, 3, and so on will all have their own columns.
There are 400 responses (i.e., participants) in each column, and each participant selects one of the three options (0, 1, or 2).
To get a summary for all variables, all I want to do is get a frequency count for each variable (e.g., Question 1, Question 2, Question 3, etc.).
0 = 100