Skip to content
Prev 75196 / 398502 Next

Reading large files in R

'read.table' is not the right tool for reading large matrices,
     especially those with many columns: it is designed to read _data
     frames_ which may have columns of very different classes. Use
     'scan' instead.

So I am not sure why you used 'scan', then converted it to a data frame.

1) Can provide an sample of the data that you are trying to read in.
2) How much memory does your machine has ?
3) Try reading in the first few lines using the nmax argument in scan.

Regards, Adai
On Mon, 2005-08-08 at 12:50 -0600, Jean-Pierre Gattuso wrote: