Learn R Programming

ILSM (version 1.0.3.2)

role_sim: Similarity of roles of interconnecting species

Description

The average of Similarity of 65 roles of interconnecting species of multilayer network.

Usage

role_sim(spe_role_mat)

Value

Return a numeric value.

Arguments

spe_role_mat

A matrix of 65 columns representing the roles of interconnecting species in the motifs. Columns names are Role1, Role2, Role3 ... Role70.

Details

spe_role_mat

Should acquire from function motif_role.

Examples

Run this code

set.seed(12)
d <- build_net(11,22,21,0.2)
mr <- icmotif_role(d)
role_sim(mr)

set.seed(1)
D <- build_net(11,22,21,0.2)
role_sim(icmotif_role(D))

Run the code above in your browser using DataLab