Hi,I'm bioinformatics student. I have two dataframes (A and B) and I want to convert the row names of the B with hgnc of the A but I don't know how I can do that. I tried with row.names(B)<-A$hgnc but the following message appears: Error in
*tmp*, value = c("MAPK1", "MAPK1", : invalid 'row.names' length.
Can someone help me? Thank you!
A) 42.299 entries
circuit_id. hgnc. entrez_id
hsa04014__42 MAPK1 5594
hsa04014__42 MAPK1 5595
hsa04014__42 MAP2K1 5604
hsa04014__42 MAP2K1 5605
hsa04014__42 RAF1 5894
hsa04014__42 SOS1 6654 ...
B) 1094 entries
TCGA.E9.A1RH.01A.21R.A169.07 TCGA.E9.A1RH.11A.34R.A169.07 TCGA.E9.A1RI.01A.11R.A169.07 TCGA.E9.A1RI.11A.41R.A169.07
hsa04014__42 0.00839838888865256 0.00970133390996418 0.00737341972835342 0.00863589753817323
hsa04014__43 0.00889266963019671 0.00884086502538367 0.00725537406271006 0.00823720653502033 ....