list - R programming: save three dimensional outputs after loop -


i new r , save out puts after loop

 (i in 1:5) {     (d in 1:10) {      fonction1      fonction2      fonction3    }   } 

at end have 1 list-> contains 5 list-> contains 1*10 data frame -> contains number*3 numeric data. (i dont know if im saying correctly, want have is: in matlab, there 1*5 structure -> contains 5 1*10 structure -> contain number*3 numeric data).

thanks in advance

looks looking after following:

out <- list() (i in 1:5) {     outlist <- list()     (d in 1:10) {      outvect <- c()      outvect[1] <- fonction1()      outvect[2] <- fonction2()      outvect[3] <- fonction3()      outlist[[d]] <- outvect    }    out[[i]] <- outlist   } 

then can at:

str(out)  

to see structure of answer


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -