search for: outputobj

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

Did you mean: output_b
2010 Nov 09
2
Creating a list to store output objects from a recursive loop
...is a data frame Now I want to put both of them in a list or some structure ... that I can access or output to a file after the loop is done. For e.g. for (i in 1:20){ niceFunction(x[i],i) } niceFunction (x,i) { result1 = someOperations() #zoo object result2 = someOperations() #data.frame OutputObj[i,1]=result1 OutputObj[i,2]=result2 } How can I go about this? Thanks, S