Skip to content

Loading in Large Dataset + variables via loop

1 message · Rui Barradas

#
Hello,

Right, it should be 'varNames' in the apply. I guess I had something 
called colNames in my environment. I've just rm(list=ls()) and rerun the 
code, corrected. No errors this time.

varNames is the result of expand.grid, therefore does have a dim attribute.

The faulty instruction corrected is:

varNames <- as.vector(apply(varNames, 1, paste, collapse=""))

Rui Barradas

Em 15-07-2012 18:12, arun escreveu: