[R] Package 'nlme' linear mixed effects model error "unexpected symbol"

Steve Taylor steve.taylor at aut.ac.nz
Thu Jul 26 22:33:17 CEST 2012

This will work:
model2007 <-

You can't start an identifier with a digit.

-----Original Message-----
From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On Behalf Of msherwood
Sent: Thursday, 26 July 2012 9:44a
To: r-help at r-project.org
Subject: [R] Package 'nlme' linear mixed effects model error "unexpected symbol"

I am trying the following code with the 'nlme' package:


I've also tried all kinds of variations of the above that I could think of.

It gives me the error "unexpected symbol in '2007model' ". I'm not sure if
this 'unexpected symbol' refers to the code I enter or the data table I am

I haven't found any useful information in a Google search or in the R help

Any suggestions of what the problem may be?

View this message in context: http://r.789695.n4.nabble.com/Package-nlme-linear-mixed-effects-model-error-unexpected-symbol-tp4637842.html
Sent from the R help mailing list archive at Nabble.com.

R-help at r-project.org mailing list
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list