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

as.network.networkDynamic

Remove ‘networkDynamic’ class name from networkDynamic object.


Description

Changes the class of a networkDynamic object to a plain network object while leaving all attributes (including dynamic attributes) intact.

Usage

## S3 method for class 'networkDynamic'
as.network(x, ...)

Arguments

x

A networkDynamic object that will have its class name stripped.

...

Possible additional arguments

Details

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.

Value

Returns the original network with the networkDynamic class name removed but all other attributes unchanged

Author(s)

Skye Bender-deMoll

See Also

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).

Examples

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)

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.