as.dynamic.network {dynamicnetwork}R Documentation

Convert networks or sets of networks into dynamic network

Description

as.dynamic.network adds additional data stuctures to network objects to represent changes in edge sets and attributes over time.

Usage

as.dynamic.network(net,edge.times = c(0,1),check.renewal = TRUE,... )

Arguments

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

Details

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.

Value

dynamicnetwork object; should not modify its argument networks

Author(s)

Skye Bender-deMoll skyebend@skyeome.net

References

See Also

dynamicnetwork,network

Examples


#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));


[Package dynamicnetwork version 0.0-4 Index]