| is_tna_network | R Documentation |
Checks whether a cograph_network was created from a tna or group_tna object.
is_tna_network(x)
x |
A cograph_network object. |
Logical: TRUE if the network was created from a TNA object, FALSE otherwise.
as_cograph
# Non-TNA network
mat <- matrix(c(0, 1, 1, 1, 0, 1, 1, 1, 0), nrow = 3)
net <- as_cograph(mat)
is_tna_network(net) # FALSE
model <- tna::tna(tna::group_regulation)
net_tna <- as_cograph(model)
is_tna_network(net_tna) # TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.