I am trying to group my dataset by multiple variables and build a frequency table of the number of times a character variable appears. Here is an example data set: