View source: R/snpArrayToMatrix.R
snpArrayToMatrix | R Documentation |
Reshapes SNP data in matrix form to array form and vice versa.
snpArrayToMatrix(Y, dropNames=TRUE, ...)
Y |
A 2LxI |
dropNames |
If |
... |
Not used. |
Returns a Lx2xI array
or a 2LxI matrix.
Y <- matrix(rnorm(200), nrow=20, ncol=10)
str(Y)
V <- snpMatrixToArray(Y)
str(V)
Y2 <- snpArrayToMatrix(V)
str(Y2)
stopifnot(identical(Y2, Y))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.