filter_matrix {mosbi} | R Documentation |
All values below the threshold will be replaces by 0.
filter_matrix(mat, threshold = 1)
mat |
A Numeric matrix. |
threshold |
All values below will be replaces by 0. |
A filtered numeric matrix.
m <- matrix(seq(1:16), nrow=4) # m <- matrix(rnorm(10000), nrow=100) # filter_matrix(m, threshold=1)