Learn R Programming

meconetcomp (version 0.6.1)

cal_module: Assign modules to each network

Description

Calculating modularity of networks and assign the modules to nodes for each network.

Usage

cal_module(
  network_list,
  undirected_method = "cluster_fast_greedy",
  directed_method = "cluster_optimal",
  ...
)

Value

list, with module attribute in nodes of each network

Arguments

network_list

a list with multiple networks; all the networks should be trans_network object created from trans_network class of microeco package.

undirected_method

default "cluster_fast_greedy"; the modularity algorithm for undirected network; see cal_module function of trans_network class for more algorithms.

directed_method

default 'cluster_optimal'; the modularity algorithm for directed network.

...

other parameters (except for method) passed to cal_module function of trans_network class.

Examples

Run this code
data(soil_amp_network)
soil_amp_network <- cal_module(soil_amp_network)

Run the code above in your browser using DataLab