I am trying to use expand.grid() on 16 of my predictor variables, some of which have factors with 12 levels, 40 levels, 48 levels, the largest of which has 462 levels. Whenever I use expand.grid in R, I get the "vector is too large" error. memory.limit() shows that there is 8 GB available, and I'm running 64-bit R. Any suggestions on how to do this? If the result can't be computed in memory, then, perhaps, we can just write the output to disk?
Thanks. Thomas.