Evaluates integrity of the input matrix.

validateMatrix(mat, checkRowNames = TRUE, allowNa = TRUE)

Arguments

mat

The matrix to validate.

checkRowNames

Check rownames are present? Stop execution if TRUE and mat does not contain rownames.

allowNa

Allow NA presence in mat? Stop execution if NAs are found in mat.

Value

TRUE if no errors are found.