I am trying to subset a data frame containing 626 obs. of 149 variables and I want to look for a specific string and return the rows that have that value regardless of what column it is found in.
For example:
I am looking for this string "GO:0004674" in a data frame that can contain this string in many different columns and rows as shown below in the image link.
For example the string "GO:0004674" can be found in row 12, 13 and 14. So I would want to keep only those rows and later on export them.
How can I perform this? All examples that I have seen thus far only look for string in a specific column and not in the whole dataframe.
Ant help will be greatly appreciated.