Hi,
I know that perhaps this place is not the best for this type of requirement but maybe some of you are Belgian.
I need to find all records in my Belgian data where respondents replied "as above", "stated before", "left a comment already" and "na", "no comments", nothing to say".
I already have this pieces of code which should be updated:
I would make a vector of the responses and then use %in% to detect them. You can use str_lower, str_tim, str_replace etc to avoid it being case sensitive, remove extra spaces, etc.
blank_statements <- c("as above", "stated before", "left a comment already", "na", "no comments", "nothing to say")
as_above <- comment %in% blank_statements