Skip to content
Prev 56899 / 398498 Next

lapply with argument "X"

On Wed, 6 Oct 2004 john.gavin at ubs.com wrote:

            
Yes.  Note that the first argument of lapply is supposed to be a list,
so what you are really using is

lapply(as.list("X"), exists)

and indeed an object named "X" exists in the environment within which 
exists() is run.