The following works to get an igraph object from a matrix edgelist:
dat2 <- matrix(rep(seq(1,5,1), 4), nrow=10, ncol=2)
graph.edgelist( dat2 )
I tried with NA's but graph.edgelist did not allow NA's. Wouldn't you just
leave those rows out with NA's in them? An NA means there is no edge, right?
Hi everyone,
I have a dataset of friendship with this format:
ego alter
47461 2
97421 3
14738 1NA
47472NA
974323
14739 21
4748313
97443 5
14740 314
47494NA
97454NA
14741 4NA
47505NA
9746513
2 matches
Mail list logo