Learn R Programming

networkDynamic (version 0.10.1)

delete.activity: Remove Timing Information in a Dynamically Extended Network Object

Description

Removes the activity spells of a given set of vertices or edges.

Usage

delete.edge.activity(x, e=seq_along(x$mel))

delete.vertex.activity(x, v=seq_len(network.size(x)))

Arguments

x

an object, of class network or networkDynamic.

e

the edges of x that will have their timing information deleted; default = all.

v

the vertices of x that will have their timing information deleted; default = all.

Value

An object with the same class as x, equivalent to x without the activity spells of the edges e or the vertices v.

Details

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.

See Also

activate

Examples

Run this code
# NOT RUN {
  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)
# }

Run the code above in your browser using DataLab