[R] incomplete final line

Joshua Wiley jwiley.psych at gmail.com
Thu Feb 17 19:01:18 CET 2011


On Thu, Feb 17, 2011 at 12:35 AM, mipplor <wang-paul at 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.



More information about the R-help mailing list