filter_network {EGAD} | R Documentation |
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
filter_network(network, flag = 1, min = 0, max = 1, ids = NA)
network |
numeric matrix |
flag |
numeric 1 for row filtering, 2 for column filtering |
min |
numeric value |
max |
numeric value |
ids |
array to filter on |
network numeric matrix
net <- matrix( rnorm(10000), nrow=100) filt_net <- filter_network(net,1,10,100)