A checkFunction to be called from
that identifies prefixed and suffixed whitespace(s) in character,
(haven_)labelled or factor variables.
identifyWhitespace(v, nMax = 10)
A character, (haven_)labelled or factor variable to check.
The maximum number of problematic values to report.
checkResult with three entires:
$problem (a logical indicating whether any whitespaces were
$message (a message describing which values were prefixed
or suffixed with whitespace) and
$problemValues (the problematic
values). Note that only unique values are printed in the message, and that
they are sorted alphabetically.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.