Thank you very much, though I still don't quite undertdand the explanation :)
Nevertheless, I just found a seemingly simple (at least quiker to type)
solution after try-and-error:
eval(mapply(function(x) {x; function() x}, c("a", "b")))
Wish it may help future readers.
On Thu, May 03, 2012 at 04:18:38PM +0200, Jessica Streicher wrote:
> So, to get back to mapply:
>
> eval(mapply(function(x) substitute(function() z,list(z=x)), c("a", "b"))$a)()
> or like this:
> mapply(function(x) eval(substitute(function(i) z*i,list(z=x))),
> c(2,3))[[1]](2)
--
Using GPG/PGP? Please get my current public key (ID: 0xAEF6A134, valid
from 2010 to 2013) from a key server.
signature.asc
Description: Digital signature
______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

