filter_network_rows {EGAD} | R Documentation

## Filter on rows

### Description

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

### Usage

    filter_network_rows(network, min = 0, max = 1, ids = NA)

### Arguments

`network` | numeric matrix
`min` | numeric value
`max` | numeric value
`ids` | array to filter on

### Value

network numeric matrix

### Examples

    genes.labels <- matrix( sample( c(0,1), 10000, replace=TRUE), nrow=100)
    rownames(genes.labels) = paste('gene', 1:100, sep='')
    colnames(genes.labels) = paste('function', 1:100, sep='')
    genes.labels <- filter_network_rows(genes.labels,50,200)

    genes.labels <- matrix( sample( c(0,1), 10000, replace=TRUE), nrow=100)
    rownames(genes.labels) = paste('gene', 1:100, sep='')
    colnames(genes.labels) = paste('function', 1:100, sep='')
    genes.labels <- filter_network_rows(genes.labels,ids = paste('gene', 1:20, sep=''))

[Package EGAD version 1.12.0 Index]