I am afraid that your solution is not solving the problem. it seems that timevar="gene" just create the followings:
GENE SAMPLE value id 1.1 1 Kidney 3.69351 1 2.1 1 Kidney 5.42710 2 3.1 1 Kidney 5.26883 3 4.1 1 Kidney 2.88098 4 5.1 1 Kidney 4.68519 5 6.1 1 Kidney 5.92774 6 ] here the "gene" is just a empty column. I also lost the column that is supposed to store the header name of transposed variables in my target table. more suggests? thanks -- View this message in context: http://r.789695.n4.nabble.com/help-for-reshape-function-tp2259286p2259706.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.