isMatrixValid: Test if matrix is valid

View source: R/clusterUtils.R

isMatrixValidR Documentation

Test if matrix is valid

Description

Test if matrix contains values that are only within the range specified by valueRange

Usage

isMatrixValid(
  dataMatrix,
  valueRange = c(0, 1),
  NAsValid = FALSE,
  checkColOrder = TRUE
)

Arguments

dataMatrix

Matrix the values of which will be tested

valueRange

Vector of min and max permissible values in the matrix (default=c(0,1))

NAsValid

Boolean TRUE/FALSE indicating if NAs are considered valid (default=FALSE)

checkColOrder

Boolean TRUE/FALSE indicating if the order of column names should be checked. this assumes that these are numerical positions in ascending order (default=TRUE)

Value

Boolean TRUE/FALSE indicating if matrix contains only valid values


jsemple19/EMclassifieR documentation built on Aug. 12, 2022, 2:57 p.m.