sm2el: Sociomatrix to edgelist

Description Usage Arguments Value Author(s) Examples

Description

Construction of an edgelist from a sociomatrix

Usage

1
sm2el(sm,directed=TRUE)

Arguments

sm

a sociomatrix with possibly valued relations

directed

if TRUE, only use the upper triangular part of the matrix to enumerate edges

Value

an edglist

Author(s)

Peter Hoff

Examples

1
2
3
Y<-matrix(rpois(10*10,.5),10,10) ; diag(Y)<-NA
E<-sm2el(Y) 
el2sm(E) - Y 

winnga/amen documentation built on May 17, 2019, 8:46 p.m.