filter_matrix: Filter a matrix

View source: R/pipeline.R

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


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