Unexpected symbol in r script, please help.

Fair enough, and thanks for the info though I'll have to try r studio later, considering I'll be using it for my thesis.