shuffle | R Documentation |
shuffle elements of a randomly chosen row of x matrix
shuffle(x)
x |
a matrix |
a matrix with shuffled elements of a row
x = matrix(c(3,1,2, 1,2,3,1,3,2,2,1,3),ncol = 3, byrow = TRUE)
shuffle(x);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.