Apologies if this has already been asked.
Let's say I have the following dataframe
sample = c("A", "B", "C", "D", "E")
bla_1 = c("CTX-M", NA, "CTX-M", NA, NA)
bla_2 = c(NA, "CTX-M", "OXA-1", NA, NA)
bla_3 = c(NA, "OXA-1", NA, "CTX-M", "OXA-1")
MIC = c(2, 4, 8, 16, 32)
df = data.frame(sample, bla_1, bla_2, bla_3, MIC)
I want to subset "df" so that I am left with the samples which contain "CTX-M". How do I achieve this when "CTX-M" exists in the three "bla_" columns?