Re: [R] R lmer debugging: Error in [[<-.data.frame(*tmp*, i, value = integer(0)) : replacement has 0 rows, data has 117

2013-12-03 Thread Cynthia Tedore
males is a factor. If I don't specify that, then it treats it as a numeric. any other suggestions? On Tue, Dec 3, 2013 at 11:25 AM, Pascal Oettli wrote: > Hello, > > I get a result if I change 'as.factor(males)' to 'males'. > > Hope this helps, > P

[R] R lmer debugging: Error in [[<-.data.frame(*tmp*, i, value = integer(0)) : replacement has 0 rows, data has 117

2013-12-03 Thread Cynthia Tedore
I am able to use lmer on an older computer without this error, but the new version (downloaded yesterday) gives me this error message: Error in [[<-.data.frame(*tmp*, i, value = integer(0)) : replacement has 0 rows, data has 117 in response to this function: model1<-lmer(threatened~as.numeric(fo