shuffle {doofa} | R Documentation |
shuffle elements of a randomly chosen row of x matrix
Description
shuffle elements of a randomly chosen row of x matrix
Usage
shuffle(x)
Arguments
x |
a matrix |
Value
a matrix with shuffled elements of a row
Examples
x = matrix(c(3,1,2, 1,2,3,1,3,2,2,1,3),ncol = 3, byrow = TRUE)
shuffle(x);
[Package doofa version 1.0 Index]