search for: funcderiv

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

Did you mean: fnderiv
2011 Oct 05
4
dynamically creating functions in r
it is possible to dynamically create functions in R using lists? what I want to do is something like this: a = list() for (i in 1:10) a[[i]] = function(seed = i) runif(seed) so that when I call a[i] I get random draws 1,2,....i unfortunately R only uses the last i . I would also like to know if there is a run-all function without explicitly looping or using lapply. for example if I