simplifyMatrix {BioQC} | R Documentation

## Simplify matrix in case of single row/columns

### Description

Simplify matrix in case of single row/columns

### Usage

    simplifyMatrix(matrix)

### Arguments

`matrix` | A matrix of any dimension If only one row/column is present, the dimension is dropped and a vector will be returned

### Examples

    testMatrix <- matrix(round(rnorm(9),2), nrow=3)
    simplifyMatrix(testMatrix)
    simplifyMatrix(testMatrix[1L,,drop=FALSE])
    simplifyMatrix(testMatrix[,1L,drop=FALSE])

[Package BioQC version 1.18.0 Index]