removeDK: Removes "Don't know" from levels and replaces with NA.

Description Usage Arguments Value See Also

Description

Tests the levels of x contain any instances of "Don't know". If so, replaces these levels with NA

Usage

1
  removeDK(x, dk = "Don't Know")

Arguments

x

Vector or Factor

dk

Character vector, containing search terms, e.g. c("Don't know", "Don't Know")

Value

A factor with "Dont know" removed

See Also

Other Functions to clean data: encToInt, fixCommonEncodingProblems, fixLevels01, fixLevels01R, fixLevels01SPSS, hasDK, intToEnc, leveltestR, leveltestSPSS, removeAllDK



Search within the surveydata package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.