Displaying 1 result from an estimated 1 matches for "f_recursion".
2010 Oct 26
1
About the recursion in R
Hi,
I am now using R to implement a stepwise algrithom which includes a
recursion function.
e.g:
--------------------------------
a = 1
*f_recursion* = function(id)
{
b = a + id; #: row A
if (...){ a = a +1;* f_recursion*(b) } #: row B
else{ .... }
}
----------------------------------
I find that if the code '*f_recursion*(b)' in row B is invoked, that means
'a' equals to 2 now. But in the procedure of '...