replace_values | R Documentation |
Replace values in an integer matrix, that are lower than a certain threshold.
replace_values(mat, threshold, replace_higher = TRUE)
mat |
An integer matrix |
threshold |
All values in the matrix lower than this values are replaced by 0. |
replace_higher |
If set to true, all values >= |
An integer matrix with (partially) replaced values.
replace_values(matrix(seq(1, 16), nrow=4), threshold=4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.