Description Usage Arguments Value See Also Examples
This function is a tool for easily specifying the checks
argument of
makeDataReport
. Note that all available check function options can be inspected
by calling allCheckFunctions()
.
1 2 3 4 5 6 7 8 9 10 11 | setChecks(
character = defaultCharacterChecks(),
factor = defaultFactorChecks(),
labelled = defaultLabelledChecks(),
haven_labelled = defaultHavenlabelledChecks(),
numeric = defaultNumericChecks(),
integer = defaultIntegerChecks(),
logical = defaultLogicalChecks(),
Date = defaultDateChecks(),
all = NULL
)
|
character |
A character vector of function names to be used as checks for character
variables. The default options are available by calling |
factor |
A character vector of function names to be used as checks for factor
variables. The default options are available by calling |
labelled |
A character vector of function names to be used as checks for labelled
variables. The default options are available by calling |
haven_labelled |
A character vector of function names to be used as checks for haven_labelled
variables. The default options are available by calling |
numeric |
A character vector of function names to be used as checks for numeric
variables. The default options are available by calling |
integer |
A character vector of function names to be used as checks for integer
variables. The default options are available by calling |
logical |
A character vector of function names to be used as checks for logical
variables. The default options are available by calling |
Date |
A character vector of function names to be used as checks for Date
variables. The default options are available by calling |
all |
A character vector of function names to be used as checks for all variables. Note that this overrules the choices made for specific variable types by using the other arguments. |
A list with one entry for each data class supported by makeDataReport
. Each
entry then contains a character vector of function names that are to be called as checks for
that variable type.
makeDataReport
, allCheckFunctions
,
defaultCharacterChecks
,
defaultFactorChecks
, defaultLabelledChecks
,
defaultHavenlabelledChecks
,
defaultNumericChecks
, defaultIntegerChecks
,
defaultLogicalChecks
, defaultDateChecks
1 2 3 4 5 6 7 8 9 10 11 | #Only identify missing values for characters, logicals and labelled variables:
setChecks(character = "identifyMissing", factor = "identifyMissing",
labelled = "identifyMissing")
#Used in a call to makeDataReport():
data(toyData)
makeDataReport(toyData, checks = setChecks(character = "identifyMissing",
factor = "identifyMissing", labelled = "identifyMissing"), replace = TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.