filter_network {EGAD} | R Documentation

## 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

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

[Package EGAD version 1.20.0 Index]