I have a dataframe containing a number of ensembl gene annotations, the DF looks like this:
geneID
1 ENSG00000000005.5
2 ENSG00000001561.6
3 ENSG00000002726.18
4 ENSG00000005302.16
5 ENSG00000005379.14
6 ENSG00000006116.3
so I would like to delete that "." and the numbers at the end of every ID. In total I have 11224 rows.
I tried using the gsub command gsub(".","",colnames(dataframe))
but this is not helping.
Any suggestions? Thank you in advance.