simplifyMatrix {BioQC} | R Documentation |
Simplify matrix in case of single row/columns
simplifyMatrix(matrix)
matrix |
A matrix of any dimension If only one row/column is present, the dimension is dropped and a vector will be returned |
testMatrix <- matrix(round(rnorm(9),2), nrow=3) simplifyMatrix(testMatrix) simplifyMatrix(testMatrix[1L,,drop=FALSE]) simplifyMatrix(testMatrix[,1L,drop=FALSE])