Chibisi Chima-Okereke
2008-Nov-02 09:35 UTC
[R] error in lapply (sorry error in last e-mail)
Dear all, I am getting a error while using lapply to generate plots. The variable ".name" is used to identify each plot in the "main" variable. The method worked once but afterwards seems to throw up an error when used in a different case. The input ... dataOut <- lapply(names(dataIn), FUN = function(.name){ anotherplotFun(dataIn[[.name]], numb = .name)} ) Throws up the error ... Error in anotherplotFun(dataIn[[.name]], numb = .name) : promise already under evaluation: recursive default argument reference or earlier problems? Thanks Chibisi [[alternative HTML version deleted]]