Message-ID: <2A8A9C50-AD0D-4098-A46B-835D9ED1AE36@xs4all.nl>
Date: 2012-12-06T14:04:08Z
From: Berend Hasselman
Subject: Why do i get: Error: unexpected input in "A<-lm(GandW ~ Authocracy,Data)" ?
In-Reply-To: <C3F60139-ACFA-4843-B9CE-CC2CA4262DE8@gmail.com>
On 25-11-2012, at 21:01, Faradj Koliev wrote:
> Every time i insert : A<-lm(GandW ~ Authocracy;Data) i get this error: Error: unexpected input in "A<-lm(GandW ~ Authocracy,Data)"
>
> 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, and its works for him.
> I have now tried many things but without any results.
>
This a typical R-help question.
Have you noticed the ; (semicolon) in the formula argument?
Replace it with , (comma). Your friend must have been using a ,
You should be using A<-lm(GandW ~ Authocracy,Data)
Berend
> Thanks for help!
>
> Stockholm university
>
> Faradj
> [[alternative HTML version deleted]]
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac