I have the following column in a dataframe. I've made it a vector below:
geneIDsfull=c("TRINITY_DN11579_c0_g1_i1^LAC17_ARATH^Cu-oxidase_3","TRINITY_DN44579_c0_g1_i4", "TRINITY_DN113_c0_g1_i2")
What I would like to do is place the Trinity ID number (TRINITY_DN11579_c0_g1_i1) in one column, then place any annotation (LAC17_ARATH^Cu-) in a separate column. Each desired annotation comes after a caret. I tried the following function:
sub ("^.*", "", geneIDsfull)
but did not have any success. Any help is appreciated. Thanks.