search for: tp3906337p3906574

Displaying 1 result from an estimated 1 matches for "tp3906337p3906574".

2011 Oct 14
4
using do.call to call a list of functions
I am having trouble figuring out how to use do.call to call and run a list of functions. for example: make.draw = function(i){i;function()runif(i)} function.list = list() for (i in 1:3) function.list[[i]] = make.draw(i) will result in > function.list[[1]]() [1] 0.2996515 > function.list[[2]]() [1] 0.7276203 0.4704813 > function.list[[3]]() [1] 0.9092999 0.7307774 0.4647443 what I