How to stop a for loop in R and keep the data -
i have code running in loop on dates. code takes while run, , there couple of days left, urgently need whatever results there are. there way of breaking code/for loop, keep whatever data has been produced now.
yes. can press "escape", examine results , restart loop.
for(iii in 1:100000000) force(iii) # press esc iii # in case 1121673 # use value restart loop later: for(iii in 1121674:100000000) force(iii)
Comments
Post a Comment