I have a dataframe which has a head(mydataframe) output as below. I want to extract name column (miRNA names) according to target column (ENST) in such a way all occurrences of miRNA are given without repeating ENST ids twice or more.
Each column is a miRNA , each row is ENST (occurring once for each specific ENST) and cells ones or zeroes according to the presence of miRNAs.
               name          target  chrom     start       end strand
2928 hsa-miR-576-5p ENST00000324219      2 101875410 101875431      +
2929 hsa-miR-483-5p ENST00000324219      2 101876861 101876882      +
3047  hsa-miR-302c* ENST00000264258      2 100989915 100989939      +
3048 hsa-miR-767-3p ENST00000264258      2 100990020 100990039      +
3049   hsa-miR-216a ENST00000264258      2 100989887 100989906      +
3050 hsa-miR-409-3p ENST00000264258     2 100990172 100990194      +
 
     
    