I am trying to save data from a logic test cycle.
So, I have the following data:
T1 <- matrix(seq(from=100000, to=6600000,length.out=676),26,26)  
I performed the following cycle
 for (i in 1:49) { print(T1 > F[i])  
This loop returns me 49 matrices filled with logical values โโ(True or false). Each matrix is โโa comparison of T1 with each of the 49 positions F [i] (F [1], ...., F [49])
I need to have values โโin these matrices for future use as adjacency matrices for network diagrams. However, when I can neither assign these booleans to the matrix, nor store them in csv values โโusing "write.matrix".
So, I need to have a 49-matrix "W" filled with logical values โโ(T or F). I already got these values โโin the loop above, but I can't get it as an object or csv collection. files.
I tried
 W<-matrix(0,26,26)  
which returns the following warning
 Warning messages: 1: In W[i] <- (T1 > F[i]) : number of items to replace is not a multiple of replacement length 
I also tried another setting in which all matrices matched have the same dimensions.
 create.M <- function(F){  
and compared two outputs
 Loop.T1(T1)>create.M(F) 
which returns
 logical(0) 
source share