replace_values_float | R Documentation |
Same as replace_values
, but for (positive) non-integer
matrices.
replace_values_float(mat, threshold, replace_higher = TRUE)
mat |
A numeric matrix |
threshold |
All values in the matrix lower than this values are replaced by 0. |
replace_higher |
If set to true, all values >= |
Replace values in a numeric matrix, that are lower than a certain threshold.
A numeric matrix with (partially) replaced values.
replace_values(matrix(rnorm(100), nrow=10), threshold=1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.