View source: R/preprocessing.R
binary_radix_sort | R Documentation |
Sort the rows of a binary matrix in ascending order
binary_radix_sort(mat)
mat |
a binary matrix (of 0 and 1) |
the sorted matrix
require(Matrix) m <- Matrix(c(1,1,0,1,0,0,0,1,1), sparse = TRUE, ncol = 3) binary_radix_sort(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.