Description Usage Arguments Examples
Simplify matrix in case of single row/columns
1 |
matrix |
A matrix of any dimension If only one row/column is present, the dimension is dropped and a vector will be returned |
1 2 3 4 | testMatrix <- matrix(round(rnorm(9),2), nrow=3)
simplifyMatrix(testMatrix)
simplifyMatrix(testMatrix[1L,,drop=FALSE])
simplifyMatrix(testMatrix[,1L,drop=FALSE])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.