role_sim | R Documentation |
The average of Similarity of 65 roles of interconnecting species of tripartite network.
role_sim(spe_role_mat)
spe_role_mat |
A matrix of 70 columns representing the roles of interconnecting species in the motifs. Columns names are Role1, Role2, Role3 ... Role70. |
spe_role_mat
Should acquire from function motif_role
.
Return a numeric value.
## generate a random tripartite network
set.seed(12)
Net <- build_toy_net(11,15,16,0.2)
role_sim(icmotif_role(Net))
data(PPH_Coltparkmeadow)
Net <- PPH_Coltparkmeadow
role_sim(icmotif_role(Net))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.