check_variables: Checks validity of variables' matrix

View source: R/check_variables.R

check_variablesR 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")

TriDimRegression documentation built on Sept. 13, 2023, 5:07 p.m.