Relooping a function over its own output
问题 I have defined a function which I want to reapply to its own output multiple times. I tried replicate(1000,myfunction) but realised that this is just applying my function to my initial input 1000 times, rather than applying my function to the new output each time. In effect what I desire is: function(function(...function(x_0)...)) 1000 times over and being able to see the changes at each stage. I have previous defined b as a certain vector of length 7. b_0=b C=matrix(0,7,1000) for(k in 1:1000