Learn R Programming

sna (version 0.3)

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

Value

  • The permuted matrix (or matrices)

Details

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

See Also

rperm

Examples

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

#Examine a random permutation
rmperm(g)

Run the code above in your browser using DataLab