powered by
Tests the levels of x contain any instances of "Don't know". If so, replaces these levels with NA
removeDK(x, dk = "Don't Know")
Vector or Factor
Character vector, containing search terms, e.g. c("Don't know", "Don't Know")
A factor with "Dont know" removed
Other Functions to clean data: encToInt, fixCommonEncodingProblems, fixLevels01, fixLevels01R, fixLevels01SPSS, hasDK, intToEnc, leveltestR, leveltestSPSS, removeAllDK
encToInt
fixCommonEncodingProblems
fixLevels01
fixLevels01R
fixLevels01SPSS
hasDK
intToEnc
leveltestR
leveltestSPSS
removeAllDK