I have a dataset where I am looking to search across the whole dataset for anytime 'ACE' appears (upper case specifically).
My dataset also contains columns with words like 'placed' so it's picking up rows that do not actually have 'ACE' exactly.
My dataset looks like:
Study ID Title Drug ...
1 Study of placement Gene1-drug
2 Study of ACE Gene1-drug
3 Study of placed treatment ACE-drug
I am looking to be able to pull out rows 2 and 3 in this case since they both have 'ACE' exactly somewhere in all the columns.
At the moment to get this I've been trying answers from similar questions but haven't got far.
For example I've tried:
test <- df %>% filter(str_detect('ACE', "[[:upper:]]"))