I have a dataframe that contains various fields. An instance being:
Protein Code Sequence CODON XYZ L AATTGCTA MET ABC K ATTGCTA MET-2 JKL B GCTTATA LYS-2
I want to extract information of all the elements in which the column CODON ends with "-2".
Like in this case i get : ABC K ATTGCTA MET-2 JKL B GCTTATA LYS-2
Please suggest the answer.
I used :
od_lig <- filter(odor_lig, CODON== "$-2")
But I got blank data.