checkData {pcaMethods}R Documentation

Do some basic checks on a given data matrix

Description

Check a given data matrix for consistency with the format required for further analysis. The data must be a numeric matrix and not contain:

Usage

checkData(data, verbose = FALSE)

Arguments

data matrix – Data to check.
verbose boolean – If TRUE, the function prints messages whenever an error in the data set is found.

Value

isValid boolean – TRUE if no errors were found, FALSE otherwise. isValid contains a set of attributes, these are:
  • isNumeric - TRUE if data is numeric, false otherwise
  • isInfinite - TRUE if data contains 'Inf' values, false otherwise
  • isNaN - TRUE if data contains 'NaN' values, false otherwise
  • isMatrix - TRUE if the data is in matrix format, FALSE otherwise
  • naRows - TRUE if data contains rows in which all elements are 'NA', FALSE otherwise
  • naCols - TRUE if data contains columns in which all elements are 'NA', FALSE otherwise

Author(s)

Wolfram Stacklies
Max Planck Institut fuer Molekulare Pflanzenphysiologie, Potsdam, Germany
wolfram.stacklies@gmail.com


[Package pcaMethods version 1.16.0 Index]