search for: tempdif9

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

Did you mean: tempdf
2016 Apr 07
2
Storing output of loop into list()
Hello. I am trying to store the output from a loop into a matrix. Failed so far, thanks for the help. What I want to store into a new matrix: (just run the code once): temps<-rnorm(400,14,0.05) ttind<-NULL for(ti in 1:(length(temps)-9)) { if(temps[ti]-temps[ti+9] >= 0.1 && max(temps[ti]-temps[ti+1:9]) > -0.05) ttind<-c(ttind,ti) } for(ti in 1:length(ttind)) {