filter_network: Filter on matrix

Description Usage Arguments Value Examples

View source: R/filter_network.R

Description

The function filters out the rows or columns of a matrix such that the size of the group is exclusively between given min and max values

Usage

1
filter_network(network, flag = 1, min = 0, max = 1, ids = NA)

Arguments

network

numeric matrix

flag

numeric 1 for row filtering, 2 for column filtering

min

numeric value

max

numeric value

ids

array to filter on

Value

network numeric matrix

Examples

1
2
net <- matrix( rnorm(10000), nrow=100)
filt_net <- filter_network(net,1,10,100)

EGAD documentation built on Nov. 8, 2020, 8:31 p.m.