Edit character length of row names in R : <p>I am working on Bioinformatics recently. I have to edit row.names for my variable. Here is the situation for me:</p>

<p>I have clinical data and gene expression values downloaded from Cancer Genome Atlas. I have to match row names but in clinical data I have row names like this  "TCGA-6D-AA2E". But in gene expressions row names like "TCGA-6D-AA2E-01A-11R-A38B-07".
Normally I used "match" command to match row names but the character lengths are not same. So my question is "Is there easy way to edit character length for row names?"</p>
