check_variables: Checks validity of variables' matrix

Description Usage Arguments Value Examples

View source: R/check_variables.R

Description

Checks whether the matrix is numeric, has expected number of columns (ncol), and has no missing/infinite data.

Usage

1
check_variables(var, var_label)

Arguments

var

Matrix N x ncol

var_label

Variable label for error messages

ncol

Expected number of columns

Value

Logical TRUE, if none of the tests fail

Examples

1
check_variables(matrix(c(1, 2, 3, 4), ncol=2), "test matrix")

TriDimRegression documentation built on May 4, 2021, 9:08 a.m.