perm.net.nl.str: Nodes labels permutation keeping network structure

View source: R/perm.net.nl.str.R

perm.net.nl.strR Documentation

Nodes labels permutation keeping network structure

Description

Permute node metrics while keeping their dependency

Usage

perm.net.nl.str(df, labels, rf = NULL, nperm, progress = TRUE)

Arguments

df

a data frame whith nodes informations

labels

a numeric or string vector indicating the columns (labels) to permute.

rf

an integer (column id) or a string (column name) indicating the column holding the factor grouping multiple networks.

nperm

an integer indicating the number of permutations wanted.

progress

a boolean indicating the visualization of the permutation process.

Details

Permute network links weigths while keep same network structure (density, modularity, binary global clustering coefficient).

Value

a list of data frames of length nperm + 1 with the first element of the list beeing the original data frame and the other elements, the permuted ones.

Author(s)

Sebastian Sosa

Examples

df = met.strength(sim.m, df = sim.df, dfid = 1)
df = met.eigen(sim.m, df = df, dfid = 1)
head(df)
t = perm.net.nl.str(df, labels = c('strength', 'eigen'), nperm = 2)

SebastianSosa/ant documentation built on Sept. 23, 2023, 7:06 a.m.