pruneNet_pctX: Prune network by retaining strongest edges

Description Usage Arguments Value

View source: R/pruneNet_pctX.R

Description

Prune network by retaining strongest edges

Usage

1
pruneNet_pctX(net, vertices, pctX = 0.1, useTop = TRUE)

Arguments

net

(data.frame) Network to prune. Columns are: source,target,weight

vertices

(char) node names. Should match those in net[,1:2]

pctX

(numeric 0 to 1) Fraction of top/bottom edges to retain

useTop

(logical) if TRUE prunes to top pctX edges; else prunes to bottom pctX edges

Value

(data.frame) pruned network. Three columns: AliasA, AliasB, and weight


netDx documentation built on Dec. 11, 2020, 2:01 a.m.