title: Why reshape2's Melt cannot capture rownames in the transformation?
body: <p>I have the following data:</p>
  
  <pre><code>Cubn    3.71455160837536    0.237454645363458
  Gm9779  2.56051657980096    0.20850752817264
  Apod    3.51796703048962    0.195999214485821
  </code></pre>
  
  <p>What I want to do is to create the 'melted' data such that it gives this</p>
  
  <pre><code>       var1 var2     value
  1      FOO Cubn   3.7145516
  2      FOO Gm9779 2.5605166
  3      FOO Apod   3.5179670
  4      BAR Cubn   0.2374546
  5      BAR Gm9779 0.2085075
  6      BAR Apod   0.1959992
  </code></pre>
  
  <p>But why this failed?</p>
  
  <pre><code> library("reshape2");
   dat &lt;-read.table("http://dpaste.com/1446132/plain/",header=FALSE)
   rownames(dat) &lt;- dat[,1]
   dat[,1] &lt;- NULL
   colnames(dat) &lt;- c("FOO","BAR");
   head(dat)
   longData &lt;- melt(dat);
   head(longData)
  </code></pre>