Description Usage Arguments Value Consistency rules
Checks if the chosen parameters follows the consistency rules.
It uses a data.frame as the data source.
1 | validateConsistency(data, timeVar, groupVar, targetVar)
|
data |
A |
timeVar |
A |
groupVar |
A |
targetVar |
A |
A character. The constant .VALID if variables are consistent and
an error message, otherwise.
If targetVar has more than one element, groupVar must be NULL. Otherwise, groupVar must be a factor in R and enum in the database.
If groupVar IS NOT NULL, each of its categories must have non null targetVar values corresponding to each different timeVar value. Besides, the set of different timeVar values must be the same for each category in groupVar.
If groupVar IS NULL, each targetVar column must contain non null values corresponding to each different timeVar value. Besides, the set of different timeVar values must be the same for each targetValue.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.