Learn R Programming

EGAD (version 1.0.3)

filter_network: Filter on matrix

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

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

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

Run the code above in your browser using DataLab