Re: [R] Unable to re-import a table that was just exported to a file

2009-04-27 Thread jim holtman
Take a look at the output file. You may need 'header=TRUE' on the read.table. It would be good to at least supply the first couple of lines of the file that you are trying to read. The error message is self explanitory: you have more columns than there are names on the first line. On Sun, Apr

Re: [R] Unable to re-import a table that was just exported to a file

2009-04-27 Thread Berwin A Turlach
On Sun, Apr 26, 2009 at 7:38 PM, Nigel Birney na...@cam.ac.uk wrote: Hi all, I am saving a program's output to a file to be read by another algorithm. But somehow such a simple operation (the reading) fails. I get: Error in read.table(a_corr_data.txt, sep = ,, col.names = T, row.names =

[R] Unable to re-import a table that was just exported to a file

2009-04-26 Thread Nigel Birney
Hi all, I am saving a program's output to a file to be read by another algorithm. But somehow such a simple operation (the reading) fails. I get: Error in read.table(a_corr_data.txt, sep = ,, col.names = T, row.names = F) : more columns than column names Here is the write statement: