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

Description Usage Arguments Details Value Author(s) See Also Examples

Description

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

Usage

1
2
3
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.

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.

Value

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

Author(s)

Ayn Leslie-Cook aynlc3@uw.edu, Carter T. Butts buttsc@uci.edu

See Also

activate

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
  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)


Search within the networkDynamic package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.