I need to do a pretty common transformation, but I forgot how it is called. Basically I have a matrix:
And I want to get a different matrix with each row to be: gene_id, Vx, num
. For instance:
WBGene00000001, V1, 0
WBGene00000002, V2, 0
...
I have a dataframe in R
, so how could it be approached there?