replace_threshold {mosbi} | R Documentation

## Replace elements of an integer matrix.

### Description

This function replaces all elements of an integer matrix, which are under a certain threshold (<) with zero.

### Usage

    replace_threshold(m, threshold)

### Arguments

`m` | A numeric matrix.
`threshold` | A numeric threshold under which all elements in the matrix are replaced by zero.

### Value

An integer matrix.

### Examples

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

[Package mosbi version 1.0.3 Index]