check_variables {TriDimRegression} | R Documentation |
Checks whether the matrix is numeric,
has expected number of columns (ncol
),
and has no missing/infinite data.
check_variables(var, var_label)
var |
Matrix N x ncol |
var_label |
Variable label for error messages |
Logical TRUE, if none of the tests fail
check_variables(matrix(c(1, 2, 3, 4), ncol=2), "test matrix")