Re: [R] effects & lme4: error since original data frame notfoundWASeffects: error when original data frame is missing

2018-01-17 Thread Fox, John
50 AM > To: r-help@r-project.org > Subject: Re: [R] effects & lme4: error since original data frame > notfoundWASeffects: error when original data frame is missing > > Third "hi" in this regard and for the archives: > > I found a (maybe "dirty") workaround wh

Re: [R] effects & lme4: error since original data frame notfoundWASeffects: error when original data frame is missing

2018-01-17 Thread Gerrit Eichner
Third "hi" in this regard and for the archives: I found a (maybe "dirty") workaround which at least does what I need by creating a copy of the required data frame in the .GlobalEnv by means of assign: foo <- function() { assign("X", sleepstudy, pos = 1) fm <- lmer(Reaction ~ Days + (Days |