as.dynamic.network {dynamicnetwork} | R Documentation |
as.dynamic.network
adds additional data stuctures to network objects to represent changes in edge sets and attributes over time.
as.dynamic.network(net,edge.times = c(0,1),check.renewal = TRUE,... )
net |
an object of class network to be converted |
edge.times |
time values to be assigned to elements |
check.renewal |
sets if code should check for renewal ties |
... |
additional arguments for generic compatibility |
For network
object, a copy is created, the appropriate class and datastructures are added, and the times of all edges are set to the value of the parameter edge.times. Note: for now both kinds of networks are assumed to be non-renewal so some information may be lost if a series representing a renewal network is passed in. network
.
dynamicnetwork
object; should not modify its argument networks
Skye Bender-deMoll skyebend@skyeome.net
dynamicnetwork
,network
#make a network net <- network.initialize(5); #add some edges net[1,0] <- 1; net[1,2] <- 1; net[2,3] <- 1; #make it dynamic with edges lasting from 0 to 6 g.dyn <- as.dynamic.network(net, edge.times=c(0,2));