check_variables {TriDimRegression} | R Documentation |
Checks validity of variables' matrix
Description
Checks whether the matrix is numeric,
has expected number of columns (ncol
),
and has no missing/infinite data.
Usage
check_variables(var, var_label)
Arguments
var |
Matrix N x ncol |
var_label |
Variable label for error messages |
Value
Logical TRUE, if none of the tests fail
Examples
check_variables(matrix(c(1, 2, 3, 4), ncol=2), "test matrix")
[Package TriDimRegression version 1.0.2 Index]