[R] Pairwise table from cloumns

ameneh deljoo amene.deljoo at gmail.com
Tue May 31 12:12:42 CEST 2016


*Hi Group
**I have a large data set of individual pairwise values (100 rows)
**that I** need to reshape into a pairwise matrix for mantel tests of
similarity these values** .
**I need this matrix for a Pathfinder network analysis. *

*I have a different data(word) such as :*





  living thing
  0


  animal
  1


  blood
  2


  bird
  3


  feathers
  4


  robin
  5


  chicken
....
  6



  *I need the final matrix to be formatted as based on the similarity
**      A1    A2    A3    A4
** A1  0     32   40     32
* *A2  32    0    49     38
** A3  40    49   0      53
** A4  32    38   53     0*

*....*


Are there any functions/packages that will make this easier? Thanks Ameneh

	[[alternative HTML version deleted]]



More information about the R-help mailing list