sort_matrix: Sort matrix

View source: R/contingency_tables_auxiliary_functions.R

sort_matrixR Documentation

Sort matrix

Description

Given a matrix, rearranges rows and columns so that row sums and col sums end up in ascending order.

Usage

sort_matrix(M)

Arguments

M

matrix

Value

rearranged matrix


martirm/clustAnalytics documentation built on Feb. 21, 2024, 4:53 p.m.