Loop in R: how to save the outputs?
问题 I am trying to save the data from a loop of logical tests. So I have the following data: T1 <- matrix(seq(from=100000, to=6600000,length.out=676),26,26) # a matrix of 26X26 - here with illustrive values minmax <- seq(from=1,to=49,by=1) # creates a sequence Fstep <- 6569141.82/minmax # define a vector from 0 to 6569141.82 with 49 divisions F <- rev(round(Fstep,0)) # round the vector values and re order them F I have runned the following loop for (i in 1:49) { print(T1 > F[i]) # I used print to