this is an R related question.
I have a variable with a series of category scores (i.e. "1 1 0", "1 1 0","1 0 1","1 1 1","1 1 0","0 0 0"). It is easy enough to use Tables or any of the similar alternatives to get a count of entries for each category: "0 0 0" = 1, "1 1 0" = 3, "1 0 1" = 1, "1 1 1" = 1.
My problem is that the data are missing some of the possible categories (i.e. "0 0 1","1 0 1","1 0 0","0 1 1"). I want to know if there is some way to count the number of each category entries in a variable that is missing some of the possible categories and produce a summary table that also includes the categories that were missing. For example: "0 0 0" = 1, "0 0 1" = 0, "0 1 0" = 0, "1 0 0" = 0, "1 1 0" = 3, "1 0 1" = 1, "0 1 1" = 0, "1 1 1" = 1.
I hope I have explained this well enough. Thanks in advance for any suggestions.