0

I'm looking for a way to count each element of my data frame, but that data frame is very big, with 29 columns and some NA's.

I already tried with table(myData) but I'm still getting the error

Error in table(myData) : attempt to make a table with >= 2^31 elements

How do I count each element in the data frame? I need something like

item frequency 3 3 45 4 24 1 6 5

Rich Scriven
  • 97,041
  • 11
  • 181
  • 245

1 Answers1

0

Given we know so little about your data, I would try doing whatever you are doing with the first few rows. E.g.

testData <- head(myData, 10)

You'll probably then see more clearly how you might have abused the 'table' function.

Jack Wasey
  • 3,360
  • 24
  • 43