sm2el | R Documentation |
Construction of an edgelist from a sociomatrix
sm2el(sm,directed=TRUE)
sm |
a sociomatrix with possibly valued relations |
directed |
if TRUE, only use the upper triangular part of the matrix to enumerate edges |
an edglist
Peter Hoff
Y<-matrix(rpois(10*10,.5),10,10) ; diag(Y)<-NA
E<-sm2el(Y)
el2sm(E) - Y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.