dat_ms <- tibble::tribble(~x, ~y, ~z, ~specials,
1, "A", -100, "?",
3, "N/A", -99, "!",
NA, NA, -98, ".",
-99, "E", -101, "*",
-98, "F", -1, "-")
miss_scan_count(dat_ms,-99)
miss_scan_count(dat_ms,c(-99,-98))
miss_scan_count(dat_ms,c("-99","-98","N/A"))
miss_scan_count(dat_ms, "\\?")
miss_scan_count(dat_ms, "\\!")
miss_scan_count(dat_ms, "\\.")
miss_scan_count(dat_ms, "\\*")
miss_scan_count(dat_ms, "-")
miss_scan_count(dat_ms,common_na_strings)
Run the code above in your browser using DataLab