| as.network.networkDynamic | R Documentation |
Changes the class of a networkDynamic object to a plain network object while leaving all attributes (including dynamic attributes) intact.
## S3 method for class 'networkDynamic'
as.network(x, ...)
x |
A |
... |
Possible additional arguments |
The primary use-case for this method is to force some other S3 method (like simulate in the tergm package, plot, or print) to use 'network' instead of 'networkDynamic' in method dispatching. Dynamic features data structures be left intact but not recognized by corresponding methods, so effectively broken.
Returns the original network with the networkDynamic class name removed but all other attributes unchanged
Skye Bender-deMoll
See Also as network.extract for extracting parts of a networkDynamic, and network.collapse for extracting part of a networkDynamic as a static network. as.networkDynamic for the inverse operation (adding the networkDynamic class to a static network).
test<-network.initialize(2)
add.edges.active(test,tail=1,head=2,onset=1,terminus=2)
is.networkDynamic(test)
test<-as.network(test)
is.networkDynamic(test)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.