randomize_matrix: Randomize a matrix

View source: R/misc.R

randomize_matrixR Documentation

Randomize a matrix

Description

Randomize a matrix bu shuffling all rows and columns.

Usage

randomize_matrix(m)

Arguments

m

A matrix.

Value

A randomized version of the input matrix.

Examples

m <- matrix(c(1,2,3,4), nrow=2)
randomize_matrix(m)

tdrose/mosbi documentation built on May 4, 2022, 3:22 p.m.