View source: R/methods-ResIN.R
| as.network.ResIN | R Documentation |
Coerces a ResIN object to a network object (from the
network package used in the statnet ecosystem). The method
preserves edge-level columns from x$ResIN_edgelist as edge attributes
and node-level columns from x$ResIN_nodeframe as vertex attributes
whenever available.
## S3 method for class 'ResIN'
as.network(x, directed = FALSE, loops = FALSE, multiple = FALSE, ...)
x |
A |
directed |
Logical; should the resulting network be directed?
Defaults to |
loops |
Logical; allow self-loops? Defaults to |
multiple |
Logical; allow multiple edges? Defaults to |
... |
Additional arguments passed to |
An object of class network.
data(lik_data)
res <- ResIN(lik_data, generate_ggplot = FALSE, plot_ggplot = FALSE)
# ResIN re-exports network::as.network()
net <- as.network.ResIN(res) ## alternatively: as.network(res)
class(net)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.