binary_radix_sort: Radix sort for a binary matrix

View source: R/preprocessing.R

binary_radix_sortR Documentation

Radix sort for a binary matrix

Description

Sort the rows of a binary matrix in ascending order

Usage

binary_radix_sort(mat)

Arguments

mat

a binary matrix (of 0 and 1)

Value

the sorted matrix

Examples

require(Matrix)
m <- Matrix(c(1,1,0,1,0,0,0,1,1), sparse = TRUE, ncol = 3)
binary_radix_sort(m)


redsnic/CIMICE documentation built on March 30, 2022, 2:46 a.m.