Skip to content
Prev 270350 / 398502 Next

Error: evaluation nested too deeply: infinite recursion / options(expressions=)?

On Aug 31, 2011, at 10:25 AM, . . wrote:

            
In R functions are "things" but they are not "strings" and cannot be  
executed by just asserting a character vector element. If you want to  
construct a 'call' from a acharacter, you can bridge that divide with  
do.call:

?do.call
fn <- paste("d", "gamma", sep="")
do.call(fn, list(1:10, shape=1) )
[1] 0.36787944117 0.13533528324 0.04978706837 0.01831563889  
0.00673794700
  [6] 0.00247875218 0.00091188197 0.00033546263 0.00012340980  
0.00004539993