I am trying to remove rows from a table based on the 'taxonomy' column, specifically removing rows with a class of 'unidentified'. However, this column contains information outside of class such as different kingdoms and phyla. Methods I've tried such as filter don't appear to be working, is there a simple method for focusing on certain information in a column?
final=counts\[!(counts$taxonomy == ";c__unidentified")\]
counts= filter(counts, counts$taxonomy != "c_unidentified")
These are examples of current attempts