model.oneway<-lm(Bulkdensity~Treatment) Error in eval(predvars, data, env) : object 'Treatment' not found
Can someone help me with this? I can´t understand why R can´t find the object "Treatment". I have defined it as a factor and the text file looks fine.
Is Treatment an object currently in your RSession that you create earlier in your script ?
I solved it! Stupid mistake. Had forgot to specify data=
If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.