Skip to contents

Returns the regular expressions that create_agents_from_survey() uses by default to recognize value labels marking an answer as missing, such as "Refused", "Don't know", "Inapplicable", and the labels the ANES and WVS give their negative missing-data codes ("-3. RESTRICTED", "-6. No post interview"). Patterns are matched ignoring case. Extend the vector to match another file's vocabulary.

Usage

fg_default_na_strings()

Value

A character vector of regular expressions.

Examples

na <- c(fg_default_na_strings(), "prefer not to say")
head(na)
#> [1] "inapplicable" "missing"      "refused"      "don't know"   "don.t know"  
#> [6] "not asked"