hasDK: Tests whether levels contain "Don't know".

Description Usage Arguments Value See Also

View source: R/cleandata.R

Description

Returns TRUE if x contains any instances of dk

Usage

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

Arguments

x

Character vector or Factor

dk

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

Value

TRUE or FALSE

See Also

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


surveydata documentation built on May 19, 2017, 7:27 p.m.

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