sm2el: Sociomatrix to edgelist

Description Usage Arguments Value Author(s) Examples

View source: R/sm2el.R

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 

pdhoff/amen documentation built on Aug. 5, 2018, 4:11 p.m.