removeAllDK: Removes "Do not know" and other similar words from factor...

Description Usage Arguments Value See Also

View source: R/cleandata.R

Description

Removes "Do not know" and other similar words from factor levels in data frame

Usage

1
removeAllDK(x, dk = NULL)

Arguments

x

List or data frame

dk

Character vector, containing search terms, e.g. c("Do not know", "DK"). These terms will be replaced by NA. If NULL, defaults to c("I don't know", "Don't Know", "Don't know", "Dont know" , "DK")

Value

A data frame

See Also

hasDK() and removeDK()

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


surveydata documentation built on July 20, 2017, 1:04 a.m.

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