perm_label | R Documentation |
This function permutes the labels of a matrix.
perm_label(A, m = 1, unique = FALSE)
A |
A matrix |
m |
Number of permutations |
unique |
Whether to return unique cases |
This function returns the permutation of labels.
Alejandro Espinosa-Rada
W <- matrix(c(
0, 1, 0, 0, 0,
0, 0, 1, 0, 0,
1, 0, 0, 0, 0,
0, 0, 0, 0, 1,
0, 0, 0, 1, 0
), byrow = TRUE, ncol = 5)
rownames(W) <- c("P", "Q", "R", "S", "T")
colnames(W) <- rownames(W)
perm_label(W, m = 1000, unique = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.