replace_threshold: Replace elements of an integer matrix.

View source: R/RcppExports.R

replace_thresholdR 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)


tdrose/mosbi documentation built on May 4, 2022, 3:22 p.m.