In this vignette we show how to implement a set of common types of validation rules with the validate
package.
In the validate
package, a validation rule is any R-expression that when evaluated, necessarily results in a logical or NA
. The idea is that a validation rule expresses a condition on a data set that you wish to check, before using the set for producing statistical statements. Examples may include:
There are many examples thinkable.
For a more formal definition of data validation and some of the ideas that underly the validate
package, also see this paper or the presentation.
Any