View source: R/identifyCaseIssues.R
| identifyCaseIssues | R Documentation |
A checkFunction to be called from
check that identifies values in a vector
that appear multiple times with different case settings.
identifyCaseIssues(v, nMax = 10)
v |
A character, factor, haven_labelled or labelled variable to check. |
nMax |
The maximum number of problematic values to report.
Default is |
A checkResult with three entires:
$problem (a logical indicating whether case issues where found),
$message (a message describing which values in v resulted
in case issues) and $problemValues (the problematic values
in their original format). Note that Only unique problematic values
are listed and they are presented in alphabetical order.
check, allCheckFunctions,
checkFunction, checkResult
identifyCaseIssues(c("val", "b", "1", "1", "vAl", "VAL", "oh", "OH"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.