replace_threshold | R Documentation |
This function replaces all elements of an integer matrix, which are under a certain threshold (<) with zero.
replace_threshold(m, threshold)
m |
A numeric matrix. |
threshold |
A numeric threshold under which all elements in the matrix are replaced by zero. |
An integer matrix.
m <- matrix(seq(1:16), nrow=4) # m <- matrix(rnorm(10000), nrow=100) # replace_threshold(m, 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.