powered by
Returns the input graph stack, with the upper triangle entries removed/replaced as indicated.
upper.tri.remove(dat, remove.val=NA)
The updated graph stack.
a graph or graph stack.
the value with which to replace the existing upper triangles.
Carter T. Butts buttsc@uci.edu
upper.tri.remove is simply a convenient way to apply g[upper.tri(g)]<-remove.val to an entire stack of adjacency matrices at once.
upper.tri.remove
g[upper.tri(g)]<-remove.val
upper.tri, lower.tri.remove, diag.remove
upper.tri
lower.tri.remove
diag.remove
#Generate a random graph stack g<-rgraph(3,5) #Remove the upper triangles g<-upper.tri.remove(g)
Run the code above in your browser using DataLab