role_sim: Similarity of roles of interconnecting species

View source: R/role_sim.R

role_simR Documentation

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)

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.

Value

Return a numeric value.

Examples


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





ILSM documentation built on Aug. 8, 2025, 7:42 p.m.