Re: [R] reshaping list into a contingency table
Try this: reshape(x, direction = 'long', varying = list(c(2, 4), c(3, 5)), idvar = 'gene') On Thu, Feb 24, 2011 at 3:19 PM, fbarreto wrote: > > Hi all, > > I have been struggling with this problem for a few days. > > I have a data table like this: > > gene rpkm1 diff1
[R] reshaping list into a contingency table
Hi all, I have been struggling with this problem for a few days. I have a data table like this: gene rpkm1 diff1 rpkm2 diff2 gene1 23 50 13 120 gene2 111 220 827 1200 gene3 7