perm | R Documentation |
Function to permutate a given array of relation.
perm(x, clu, rev, lbs, sort)
x |
a matrix or an array to be permuted |
clu |
the cluster for the permutation |
rev |
(optional and logical) whether the order in |
lbs |
(optional) the labels after the permutation |
sort |
(optional and logical) sort array according to labels? |
This function serves to permutate an array representing relations according to a vector for the clustering membership.
A permuted matrix or array
Antonio Rivero Ostoic
cph
, partial.order
# scan the multiplication table data
s <- matrix(data=c(1, 1, 1, 3, 3, 3, 3, 3, 3), nrow=3, ncol=3, byrow=TRUE)
# the permutation as an endomorphism
perm(s, clu = c(1,2,3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.