varTests-generic: Tools for checking variables in a data frame

Description Usage Arguments Details Value See Also

Description

These functions check for existence and properties of a specified variable name in a given data frame.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

Arguments

x

the data frame where to check

v

a character vector giving full variable names

Details

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.

Value

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

See Also

dplyr::'%>%' recTests-generic


alexploner/R.HDSS documentation built on May 12, 2019, 2:32 a.m.