Re: [R] Conduct pairwise column comparisons without comparing a column to itself

2007-10-19 Thread jim holtman
A little different solution, but it gives you the matches and the columns in a more compact form. You can always take the data and use it to put into your array. > # creation of the data matrix > c1<- c(1,4,3,2,4,1,3,2,4,3) > c2<- c(2,4,3,4,4,3,4,1,3,2) > c3<- c(1,3,2,4,4,3,4,4,2,2) > c4<- c(2,3,

[R] conduct pairwise column comparisons without comparing a column to itself

2007-10-19 Thread Luke Neraas
# Hello # I have a question regarding pairwise calculations of a matrix using a "for-loop." # Below I have a matrix "X" with 8 columns. These are genotypic data so Column1 & Column2 is # a unit, Column3 & Column4 is a unit, Column5 & Column6 is a unit, and Coulmn7 & 8 is a unit. # I have a loop d