Displaying 1 result from an estimated 1 matches for "tp4629360p4629417".
2012 May 12
1
problem with get() inside of lme()
Hi,
In the following lines of code are inside of a function, where "TRAIT1" is
a function variable calling a column-name inside of the data.frame "new3".
This works just fine:
m2 <- lmer(get(TRAIT1) ~ perm.score + (1|site), data=new3)
but this will not work,
m3 <- lme(get(TRAIT1) ~ perm.score , random= ~1|site, data=new3)
I get the following error:
Error in