View source: R/check_variables.R
check_variables | 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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.