[R] Error reading a table
jholtman at gmail.com
Fri Jun 27 18:27:04 CEST 2008
On Fri, Jun 27, 2008 at 12:00 PM, <naw3 at duke.edu> wrote:
> I get the following error when I try to read in a CSV file:
>> Path<-read.table('MetaCycSample2.csv',sep=',', header=FALSE)
> Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
> line 17 did not have 5 elements
> Some of the rows have more columns than others. Also when I try the read.csv
> command, the very last column, which only has one cell with a value, doesn't
> get read, so that last cell is lost.
> How can I fix this?
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
+1 513 646 9390
What is the problem you are trying to solve?
More information about the R-help