permute_matrix: Permutes rows and corresponding cols of a matrix.

Description Usage Arguments Value Examples

View source: R/permute_matrix.R

Description

This is a quick permutation of the matrix.

Usage

1

Arguments

m

A square matrix.

Value

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

Examples

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

MarianaLag/Mlag documentation built on Feb. 13, 2020, 12:30 a.m.