remove_dk: 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
  remove_dk(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

has_dk and remove_all_dk


andrie/surveyortools documentation built on May 10, 2019, 11:42 a.m.