View source: R/perm.net.nl.str.R
perm.net.nl.str | R Documentation |
Permute node metrics while keeping their dependency
perm.net.nl.str(df, labels, rf = NULL, nperm, progress = TRUE)
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. |
Permute network links weigths while keep same network structure (density, modularity, binary global clustering coefficient).
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.
Sebastian Sosa
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.