I have solved the problem. And as i assumed from the beginning it was a simple one.
The problem was that i had my csv file on the descop. It should have been in the working directory. So i just needed to read the file and then run lm() like i wrote before. Thanks to Ray DiGiacomo, Jr! Regards, 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-tp4650559p4650788.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.