I am trying to use the formula lme() in R to analyse the response of some factors in my variable "Peso_seco", but I keep getting an error that is making my life very difficult. What I am trying is:
model <- lme(Tritordeum$Peso seco ~ Tratamiento + Hongo + Tratamiento*Hongo,
random=~1|Tritordeum$Línea,
na.action = na.omit)
And R gives me the next error:
Error in parse(text = paste("~", paste(names, collapse = "+"))) :
:1:19: unexpected symbol
1: ~ Tritordeum+Peso seco
^
Any idea of why is this happening? Thanks in advance for your time,
Maria.