input_checker: Check if matrices satisfy input conditions
Description
Check if matrices satisfy input conditions
Usage
input_checker(X, Y = NULL)
Arguments
- X
Should be numeric matrix.
- Y
Should be numeric matrix.
Details
This function throws an error if any of the elements is NA
, Inf
, NaN
or nrow(X)
doesn't match nrow(Y)
.