permute_matrix: Permutes rows and corresponding cols of a matrix.

View source: R/permute_matrix.R

permute_matrixR Documentation

Permutes rows and corresponding cols of a matrix.

Description

This is a quick permutation of the matrix.

Usage

permute_matrix(m)

Arguments

m

A square matrix.

Value

A permutation (of both rows and columns) of the matrix

Examples

m <- matrix(1:16,nrow=4)
m
permute_matrix(m)

dyerlab/gstudio documentation built on Feb. 2, 2024, 8:24 p.m.