I got this error:
Error in table(st2.affect) : attempt to make a table with >= 2^31 elements
when I tried to use function (or any other proportions function) such as:
proportions(table(st2.affect), margin = 1L)
My dataset has 20 categorical variables with 5 levels which are very important for the analysis. I still tried to do the proportion table without levels and got the same error. I want to know frequencies and proportions of each variable and I want to create a table with proportions.
What is the solution to this error?
Data set sample:
There are 20 areas (variable) Each participant assigned one of 5 affective labels
area1_affect area2_affect area3_affect area4_affect area5_affect
Peaceful Peaceful Peaceful Tense Peaceful
Other Peaceful Other Other Other
Peaceful Peaceful Peaceful Tense Tense
Peaceful Tense Delighted Tense Peaceful
Peaceful Peaceful Peaceful Other Other
Peaceful Peaceful Delighted Tense Tense
Try making
factors in columns withuniquevalues aslevels=.Data: