Displaying 1 result from an estimated 1 matches for "indxind".
Did you mean:
indexing
2012 Aug 08
3
help, please! matrix operations inside 3 nested loops
hello, this is my script:
#1) read in data:
daten<-read.table('K:/Analysen/STRUCTURE/input_STRUCTURE_tab_excl_5_282_559.txt',
header=TRUE, sep="\t")
daten<-as.matrix(daten)
#2) create empty matrix:
indxind<-matrix(nrow=617, ncol=617)
indxind[1:20,1:19]
#3) compare cells to each other, score:
for (s in 3:34) { #walks though the matrix colum by colum, starting at
colum 3
for (z1 in 1:617) { #for each current colum, take one row (z1)...
for (z2 in 1:617) { #...and compare it to another ro...