F86
2012-Nov-23 15:23 UTC
[R] Why do i get "Error: unexpected input in "A<-lm(GandW ~ Authocracy, Data)"
Every time i insert : A<-lm(GandW ~ Authocracy;Data) i get this Error. Iam using Mac. And i have checked that "Data" has been read correctly. The same command with the same Data has been used by a friend who is using Linux. Thanks for help! Stockholm university Faradj -- View this message in context: http://r.789695.n4.nabble.com/Why-do-i-get-Error-unexpected-input-in-A-lm-GandW-Authocracy-Data-tp4650559.html Sent from the R help mailing list archive at Nabble.com.
brunosm
2012-Nov-23 16:17 UTC
[R] Why do i get "Error: unexpected input in "A<-lm(GandW ~ Authocracy, Data)"
Use "," instead of ";" It should work now... Regards, Bruno -- View this message in context: http://r.789695.n4.nabble.com/Why-do-i-get-Error-unexpected-input-in-A-lm-GandW-Authocracy-Data-tp4650559p4650566.html Sent from the R help mailing list archive at Nabble.com.
F86
2012-Nov-25 12:15 UTC
[R] Why do i get "Error: unexpected input in "A<-lm(GandW ~ Authocracy, Data)"
Dear Bruno, I sitll get this message, even when iam using "," Error: unexpected input in "A<-lm(GandW ~ Authocracy,Data)" -- View this message in context: http://r.789695.n4.nabble.com/Why-do-i-get-Error-unexpected-input-in-A-lm-GandW-Authocracy-Data-tp4650559p4650720.html Sent from the R help mailing list archive at Nabble.com.
Barry Rowlingson
2012-Nov-25 13:39 UTC
[R] Why do i get "Error: unexpected input in "A<-lm(GandW ~ Authocracy, Data)"
On Sun, Nov 25, 2012 at 12:15 PM, F86 <faradj.g at gmail.com> wrote:> Dear Bruno, > > I sitll get this message, even when iam using "," Error: unexpected input > in "A<-lm(GandW ~ Authocracy,Data) " >You're on a Mac, you say? Try googling for "R unexpected error" - Macs do some crazy things: http://www.manning-sandbox.com/thread.jspa?threadID=46089 try it with = instead of <-> > -- > View this message in context: http://r.789695.n4.nabble.com/Why-do-i-get-Error-unexpected-input-in-A-lm-GandW-Authocracy-Data-tp4650559p4650720.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at 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.
Barry Rowlingson
2012-Nov-25 15:16 UTC
[R] Why do i get "Error: unexpected input in "A<-lm(GandW ~ Authocracy, Data)"
On Sun, Nov 25, 2012 at 2:01 PM, Rui Barradas <ruipbarradas at sapo.pt> wrote:> Hello, > > Another possibility is to use argument 'data' explicitly: > > A<-lm(GandW ~ Authocracy, data = Data) > > > Hope this helps,It's not going to. The line parses very nicely as written, with or without naming the argument. The specific error the poster was getting only happens when you have an input that doesn't parse. I have been having trouble reproducing that error message but finally managed it by using that weird 'hook' character in the top-left of my keyboard:> z?1Error: unexpected input in "z?" - which makes me think the link I pointed to about Macs mashing <- into a single arrow character is the kind of thing that is happening. We wait.... Barry
William Dunlap
2012-Nov-25 18:42 UTC
[R] Why do i get "Error: unexpected input in "A<-lm(GandW ~ Authocracy, Data)"
I see the character (octal) 021 at the end of that error message (when I save it as *.txt file from wordpad). Error: unexpected input in "A<-lm(GandW ~ Authocracy,Data) " Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com> -----Original Message----- > From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf > Of F86 > Sent: Sunday, November 25, 2012 4:16 AM > To: r-help at r-project.org > Subject: Re: [R] Why do i get "Error: unexpected input in "A<-lm(GandW ~ Authocracy, > Data)" > > Dear Bruno, > > I sitll get this message, even when iam using "," Error: unexpected input > in "A<-lm(GandW ~ Authocracy,Data)" > > > > -- > View this message in context: http://r.789695.n4.nabble.com/Why-do-i-get-Error- > unexpected-input-in-A-lm-GandW-Authocracy-Data-tp4650559p4650720.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at 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.
F86
2012-Nov-25 18:46 UTC
[R] Why do i get "Error: unexpected input in "A<-lm(GandW ~ Authocracy, Data)"
True it did not. I have now tried to do everything but without any results. However, a friend of mine, with PC(Linux), does the same thing and it works just perfect. -- View this message in context: http://r.789695.n4.nabble.com/Why-do-i-get-Error-unexpected-input-in-A-lm-GandW-Authocracy-Data-tp4650559p4650760.html Sent from the R help mailing list archive at Nabble.com.
F86
2012-Nov-25 18:51 UTC
[R] Why do i get "Error: unexpected input in "A<-lm(GandW ~ Authocracy, Data)"
Also when i type "z?1" i got the same error. My data seems to be OK without any problems. And its works perfect for a friend. -- View this message in context: http://r.789695.n4.nabble.com/Why-do-i-get-Error-unexpected-input-in-A-lm-GandW-Authocracy-Data-tp4650559p4650762.html Sent from the R help mailing list archive at Nabble.com.