On Sun, Nov 25, 2012 at 2:01 PM, Rui Barradas <ruipbarra...@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¬1 Error: 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 ______________________________________________ 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.