upper.tri.remove | R Documentation |
Returns the input graph stack, with the upper triangle entries removed/replaced as indicated.
upper.tri.remove(dat, remove.val=NA)
dat |
a graph or graph stack. |
remove.val |
the value with which to replace the existing upper triangles. |
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.
The updated graph stack.
Carter T. Butts buttsc@uci.edu
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.