Learn R Programming

ILSM (version 1.1.0.1)

role_sim: Similarity of roles of interconnecting species

Description

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

Usage

role_sim(spe_role_mat)

Value

Return a numeric value.

Arguments

spe_role_mat

A matrix of 70 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

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




Run the code above in your browser using DataLab