search for: iterf

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

Did you mean: iter
2011 Jul 29
4
scripting/littler: How to call function named iteratively (`f1`, `f2`, …)?
Dear R folks, wanting to compare different implementations of a solution I want to script it to iterate over the different implementations. Is there a way to do this in the R shell/command line? $ more /tmp/iterf.r f1 <- function(n = 100000, l = 100000) { z = n + l } f2 <- function(n = 100000, l = 100000) { z = 2 * (n + l) } I tried the following, but it of course does not work...