powered by
Reshapes SNP data in matrix form to array form and vice versa.
snpArrayToMatrix(Y, dropNames=TRUE, ...)
Returns a Lx2xI array or a 2LxI matrix.
array
A 2LxI matrix or a Lx2xI array, where L is the number of probe pairs and I is the number of arrays.
matrix
If TRUE, dimension names are dropped, otherwise preserved.
TRUE
Not used.
Y <- matrix(rnorm(200), nrow=20, ncol=10) str(Y) V <- snpMatrixToArray(Y) str(V) Y2 <- snpArrayToMatrix(V) str(Y2) stopifnot(identical(Y2, Y))
Run the code above in your browser using DataLab