module_summary: Summarize Module Count Across Networks

View source: R/module_summary.R

module_summaryR Documentation

Summarize Module Count Across Networks

Description

Calculates nodes-per-module and modules-per-network on a list of graphs with defined memberships

Arguments

network_list

a list of 'igraph' graph objects with community memberships.

Value

a data.frame where each row corresponds the the nth element of the network_list.

Examples


g1 <- simulate_graph(n_animals = 12, n_groups = 3, time_to_leave = 4, time_to_return = 1,
                     travel_time = c(0.001, 0.002), sampling_duration = 30,
                     sampler = "discrete", samples_per_day = 1)
g2 <- simulate_graph(n_animals = 12, n_groups = 3, time_to_leave = 4, time_to_return = 1,
                     travel_time = c(0.001, 0.002), sampling_duration = 30,
                     sampler = "discrete", samples_per_day = 1)
g_list <- list(g1, g2)
module_summary(g_list)


gavincotterill/modulr documentation built on Nov. 30, 2022, 11:15 p.m.