restrict_network_degree: Limit the number of edges per node within a network

View source: R/Main_functions.R

restrict_network_degreeR Documentation

Limit the number of edges per node within a network

Description

Limit the number of edges per node within a network

Usage

restrict_network_degree(
  df_corr,
  var_order = "r_corr",
  decreasing = TRUE,
  source = "name_1",
  target = "name_2",
  nmax = NULL,
  strict = TRUE
)

Arguments

df_corr

a data.frame

var_order

column in df_corr used to order network edges before filtering

decreasing

logical, use decreasing order to order network edges according to column var_order

source

column with source nodes

target

column with target nodes

nmax

integer, limits the number of edges per node

strict

logical, if TRUE, ensures a strict upper bound on the maximal degree

Value

a network with a maximum degree lower than nmax


VoisinneG/InteRact documentation built on May 17, 2022, 11:40 p.m.