Description Usage Arguments Details Value See Also
These functions check for existence and properties of a specified variable name in a given data frame.
1 2 3 4 5 6 7 8 9 10 11 | varTest_Exists(x, v)
varTest_NoMissing(x, v)
varTest_ExistsNoMissing(x, v)
varTest_IsConstant(x, v)
varTest_NoDuplicate(x, v)
varTest_IsSequential(x, v)
|
x |
the data frame where to check |
v |
a character vector giving full variable names |
These are simple tools suitable for checking whether a required
variable is present in the data, and also whether there is a working
primary key. The idea is that a data frame that passes these tests should
be suitable for preprocessing.
These tests are not suitable for checking the content of the variables,
with the exception of checking for valid keys or crude missingness.
Note that the data frame to be tested is the first argument, to make
processing via the pipe operator easier.
A data frame with three columns and as many rows as there are
variable names specified. The columns are Test
, which gives a short
description of the test, Variable
, which names the variable for
which the test was applied, and Pass
, which is a logical flag
indicating whether or not the variable passed the test
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.