tags:

views:

3

answers:

0

I love the progress bar with rdply() and I want to convert some of my loops (thanks to Hadley!). Is there a way to use a counter in rdply()? I need to accumulate values over replications. The code I want to convert is below. Thanks!

reps <- 4
store <- numeric(4)
c <- 0
for(i in 1:reps){c <- c + 1; store[i] <- c}
store