Sociomatrix to edgelist
Construction of an edgelist from a sociomatrix
sm2el(sm,directed=TRUE)
sm
: a sociomatrix with possibly valued relationsdirected
: if TRUE, only use the upper triangular part of the matrix to enumerate edgesan edglist
Y<-matrix(rpois(10*10,.5),10,10) ; diag(Y)<-NA E<-sm2el(Y) el2sm(E) - Y
Peter Hoff