Skip to content
Prev 324806 / 398503 Next

Trying to build up functions with its names by means of lapply

You can put print statements into the arguments given to a function to more directly
see when they get evaluated.  E.g.,
Evaluating 'c' argument
Evaluating 'mean' argument
[1] 0.4207403 0.7881446 0.9640697 0.9974449 0.9999277
Evaluating 'c' argument
Evaluating 'mean' argument
[1] 0.4207403 0.7881446 0.9640697 0.9974449 0.9999277
[1] 0.4207403 0.7881446 0.9640697 0.9974449 0.9999277

where f0 does not call force(list(...)) and f1 does.

Bill Dunlap
Spotfire, TIBCO Software
wdunlap tibco.com