I have this R data.frame:
barcode miRNA_region sum_read_count
TCGA-18-3406-01A-01T-0981-13 hsa-let-7a-1_MIMAT0000062 11867
TCGA-18-3407-01A-01T-0981-13 hsa-let-7a-1_MIMAT0000062 12821
TCGA-18-3408-01A-01T-0981-13 hsa-let-7a-1_MIMAT0000062 9703
TCGA-18-3410-01A-01T-0981-13 hsa-let-7a-1_MIMAT0000062 5376
TCGA-18-3411-01A-01T-0981-13 hsa-let-7a-1_MIMAT0000062 7630
TCGA-18-3412-01A-01T-0981-13 hsa-let-7a-1_MIMAT0000062 7301
TCGA-18-3414-01A-01T-0981-13 hsa-let-7a-1_MIMAT0000062 11296
TCGA-18-3415-01A-01T-0981-13 hsa-let-7a-1_MIMAT0000062 9681
TCGA-18-3416-01A-01T-0981-13 hsa-let-7a-1_MIMAT0000062 5531
TCGA-18-3417-01A-01T-1442-13 hsa-let-7a-1_MIMAT0000062 9262
TCGA-18-3419-01A-01T-0981-13 hsa-let-7a-1_MIMAT0000062 2650
TCGA-18-3421-01A-01T-0981-13 hsa-let-7a-1_MIMAT0000062 10711
TCGA-18-4086-01A-01T-1557-13 hsa-let-7a-1_MIMAT0000062 7531
TCGA-18-4721-01A-01T-1442-13 hsa-let-7a-1_MIMAT0000062 9683
TCGA-18-5592-01A-01T-1634-13 hsa-let-7a-1_MIMAT0000062 7604
TCGA-18-5595-01A-01T-1634-13 hsa-let-7a-1_MIMAT0000062 5872
TCGA-21-1072-01A-01T-1557-13 hsa-let-7a-1_MIMAT0000062 11132
with also other miRNA_region not visualized here.
I want all values of miRNAregion column as new columns of data.frame. barcode column with unique values of barcode and, for each barcode the sumreadcount value (for each miRNAregion).
Any suggestions?
Thank you!