Seurat (version 2.3.4)

MatrixRowShuffle: Independently shuffle values within each row of a matrix

Description

Creates a matrix where correlation structure has been removed, but overall values are the same

Usage

MatrixRowShuffle(x)

Arguments

x

Matrix to shuffle

Value

Returns a scrambled matrix, where each row is shuffled independently

Examples

Run this code
# 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