Description Usage Arguments Author(s) Examples
View source: R/binary_convert.R
Convert values within a matrix to binary form (0 or 1)
1 | binary_convert(matrix, threshold)
|
matrix |
A matrix that contains numbers in real values |
threshold |
A positive real value that determines the cutoff |
Peter I-Fan Wu
1 2 | mat=matrix(c(1:12),nrow=3)
binary_convert(mat,threshold = 5)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.