filter_matrix {mosbi} | R Documentation

## Filter a matrix

### Description

All values below the threshold will be replaces by 0.

### Usage

    filter_matrix(mat, threshold = 1)

### Arguments

`mat` | A Numeric matrix.
`threshold` | All values below will be replaces by 0.

### Value

A filtered numeric matrix.

### Examples

    m <- matrix(seq(1:16), nrow=4)
    # m <- matrix(rnorm(10000), nrow=100)
    # filter_matrix(m, threshold=1)

[Package mosbi version 1.0.3 Index]