On Thu, Feb 17, 2011 at 12:35 AM, mipplor <wang-p...@hotmail.com> wrote: > > thx for your suggestions , i have made it csv file,and it looks: > > >> data<‐read.table('E:/my documents/r/1.csv',header=TRUE)
It looks like you could benefit from (re)reading my previous email. You either need to specify the sep = argument in read.table() or use read.csv(), which is a wrapper for read.table() with defaults for CSV files. Josh > Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, > : > line 1 did not have 2 elements > > > is there wrong with the data? > -- > View this message in context: > http://r.789695.n4.nabble.com/incomplete-final-line-tp3309405p3310357.html > Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.