I have a dataframe that includes some "no" responses - this is analogous to "I don't know", and was used to allow participants to skip this question if they didn't know the answer.
I'm trying to filter out all of these "no" values across the entire df (816 columns). These are legitimate responses, so I don't just want to convert them to NA, but I'd like to filter them out for one particular analysis.
I've tried the following, but this also filters out partial matches, when "no" is found within another word (e.g. "nose" becomes "se", "cannon" becomes "cann"). How can I filter out "no" responses only when the entire value is a match, and skip any partial matches within other values?
naming_data %>%
filter(!grepl('no', names))
Any help appreciated! Jamie