shuffle_matrix | R Documentation |
Each row or column is shuffled separately. To reproduce the result, set the seed before running the function.
shuffle_matrix(x, margin = c("column", "row"))
x |
A matrix. |
margin |
A character scalar, either "row" or "column". Default to "column", because columns are usually used as features. |
A matrix.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.