Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rmperm

Randomly Permute the Rows and Columns of an Input Matrix


Description

Given an input matrix (or stack thereof), rmperm performs a (random) simultaneous row/column permutation of the input data.

Usage

rmperm(m)

Arguments

m

a matrix, or stack thereof (or a graph set, for that matter).

Details

Random matrix permutations are the essence of the QAP test; see qaptest for details.

Value

The permuted matrix (or matrices)

Author(s)

Carter T. Butts buttsc@uci.edu

See Also

Examples

#Generate an input matrix
g<-rgraph(5)
g             #Examine it

#Examine a random permutation
rmperm(g)

sna

Tools for Social Network Analysis

v2.6
GPL (>= 2)
Authors
Carter T. Butts [aut, cre, cph]
Initial release
2020-10-5

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.