powered by
Creates a matrix where correlation structure has been removed, but overall values are the same
MatrixRowShuffle(x)
Matrix to shuffle
Returns a scrambled matrix, where each row is shuffled independently
# NOT RUN { mat <- matrix(data = rbinom(n = 25, size = 20, prob = 0.2 ), nrow = 5) mat MatrixRowShuffle(x = mat) # }
Run the code above in your browser using DataLab