Assistance R, When trying to insert data in txt format already set up R pr is the following error: "Erro em scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : linha 1 n?o tinha 10 elementos" I would like to know how to remedy this error pr I proceeded with my analysis, because I need to urgently Att Carlos Magno -- View this message in context: r.789695.n4.nabble.com/Assistance-R-tp3518289p3518289.html Sent from the R help mailing list archive at Nabble.com.
Am 12.05.2011 20:14, schrieb Carlosmagno:> Assistance R, > > When trying to insert data in txt format already set up R pr is the > following error: > > > "Erro em scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, > : > linha 1 n?o tinha 10 elementos" > > > I would like to know how to remedy this error pr I proceeded with my > analysis, because I need to urgentlyWe need more information. What command do you use to read the file? How do the first 5 lines of your data.txt look like? -- Alex
As Alexander Engelhardt says we need more information/ Please give us the code you are using and a sample of the data. However one thing you might want to do is check that the seperetor is for the data. You may be reading something like tab delimited data when you think it is comma delimited. Or something similar. --- On Thu, 5/12/11, Carlosmagno <carlosmagno_sc at ig.com.br> wrote:> From: Carlosmagno <carlosmagno_sc at ig.com.br> > Subject: [R] Assistance R > To: r-help at r-project.org > Received: Thursday, May 12, 2011, 2:14 PM > Assistance R, > > When trying to insert data in txt format already set up R > pr is the > following error: > > > "Erro em scan(file, what, nmax, sep, dec, quote, skip, > nlines, na.strings, > : > ? linha 1 n?o tinha 10 elementos" > > > I would like to know how to remedy this error pr I > proceeded with my > analysis, because I need to urgently > > Att > > Carlos Magno > > -- > View this message in context: r.789695.n4.nabble.com/Assistance-R-tp3518289p3518289.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org > mailing list > stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide R-project.org/posting-guide.html > and provide commented, minimal, self-contained, > reproducible code. >