I have an issue with the Regex function.
I'm trying to specify weird comments which should be treated as blanks such as:
"no comment", No Comments", "Nothing", "n a", "n.a", "n.a.", "N/A", "pass" and "na".
I have this code (thank you for helping me with this andresrcs)
blank_statements <- regex("no\\scomment?|nothing|n\\sa|n.a|n.a.|N/A|pass|na", ignore_case = TRUE)
but I have following issues:
- N/A is not recognised
- I need to find sentences with "no" as a separate word but reprex finds everything with no (for example "monotony" or "nose")
- I'm not sure about words with dots (like n.a)
Can you help please?