I have a data frame like below but with 384 columns:
id  col1    col2       col3     col4    col5    .....     col385
1       B45-P   Y   X       RH_B17   S-B45   IU_B34
'
             IU_B34 Y   Y   Y      X
.   S-B45                   RH_B17         X
'
            RH_B17                 X
'
    X   S-B45       X   x   X   IU_B34     X
155 Y   RH_B17              Y       X   
I want to filter the above data frame and just keep the rows that in any of their columns they contain (B45 or B17 or B34).

 
     
     
    