| remove_dont_know | R Documentation |
Tests the levels of x contain any instances of "Don't know". If so, replaces these levels with NA
remove_dont_know(x, dk = "Don't Know")
x |
Character vector or factor |
dk |
Character vector, containing search terms, e.g. |
A factor with "Dont know" removed
Other Functions to clean data:
encToInt(),
fix_common_encoding_problems(),
fix_levels_01_spss(),
has_dont_know(),
intToEnc(),
leveltest,
remove_all_dont_know()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.