validateTargetVariables: Validate Target Variables

Description Usage Arguments Value Validation rule

Description

Checks the validity of a target variable, a numeric variable usually of main interent. It uses a direct connection to the dzVis database or a data.frame as the data source.

Usage

1

Arguments

data

A data.frame with the actual data source or a character containing the name of the table in the dzVis database. If it is a data.frame, a connection to the dzVis database WILL NOT be estabilished. If it is a character, a connection WILL be estabilished.

targetVar

A character vector. The name(s) of the column(s) to be checked.

Value

A character. The constant .VALID if the variables are valid and an error message, otherwise.

Validation rule

Each column whose name is in targetVar must be numeric in R and double or int in the database.


talithafs/dzVis-Package documentation built on May 31, 2019, 2:54 a.m.