delete.activity | R Documentation |
Removes the activity spells of a given set of vertices or edges.
delete.edge.activity(x, e=seq_along(x$mel))
delete.vertex.activity(x, v=seq_len(network.size(x)))
x |
an object, of class |
e |
the edges of |
v |
the vertices of |
Though the timing information of the edges and/or vertices may be
removed, other networkDynamic methods will assume activity or
inactivity across all time points, based on the argument
active.default
.
An object with the same class as x
, equivalent to x
without the
activity spells of the edges e
or the vertices v
.
Ayn Leslie-Cook aynlc3@uw.edu, Carter T. Butts buttsc@uci.edu
activate
library(networkDynamic)
data(flo)
net1 <- network(flo)
activate.edges(net1)
activate.vertices(net1)
net2 <- net1
delete.edge.activity(net1, e=seq(2,40,2))
delete.edge.activity(net2)
delete.vertex.activity(net2)
is.active(net1, at=0, e=c(1,2), active.default=FALSE)
is.active(net1, at=0, e=c(1,2), active.default=TRUE)
is.active(net2, at=0, e=1:16, active.default=FALSE)
is.active(net2, at=0, e=1:16, active.default=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.