Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

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

Examples

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)

networkDynamic

Dynamic Extensions for Network Objects

v0.10.1
GPL-3
Authors
Carter T. Butts [aut], Ayn Leslie-Cook [aut], Pavel N. Krivitsky [aut], Skye Bender-deMoll [aut, cre], Zack Almquist [ctb], David R. Hunter [ctb], Li Wang [ctb], Kirk Li [ctb], Steven M. Goodreau [ctb], Jeffrey Horner [ctb], Martina Morris [ctb]
Initial release
2020-01-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.