[R] lapply with argument "X"
Barry Rowlingson
B.Rowlingson at lancaster.ac.uk
Wed Oct 6 18:54:02 CEST 2004
Peter Dalgaard wrote:
>
> Internal variable capture. I think this is a bug.
>
> Also, try lapply("FUN",get)
>
>
If 'exists' was vectorised in its first argument then there wouldn't be
a need to use lapply with it, would there? I'm guessing the original
problem stems from something like:
got = exists(c("X","Y","Z"))
not working and the user thinking lapply would do nicely...
How to vectorise it without introducing another existing variable is
another problem...
Baz
More information about the R-help
mailing list