title: How to keep the original class/format when Transpose dataframe R
body: <p>I have a data frame <code>NumOrder1</code> contains 5 columns as followings:</p>
  
  <pre><code>     ChannelN Order1 Order2 Order3 Order4 Order5
  1     EXS     256     242    251     270    274
  2     ISO     25      29     26      43    26
  3     ISS     89      74     111     85    79
  </code></pre>
  
  <p>Now I use transpose<code>NumbOrder2&lt;-data.frame(t(NumOrder1))</code>to convert the matrix's columns and rows. Now I have </p>
  
  <pre><code>            X1    X2   X3   
  ChannelN    EXS   ISO  ISS 
  Order1      256   25   89                                
  Order2      242   29   74                             
  Order3      251   26   111                       
  Order4      270   43   85                             
  Order5      274   26   79        
  </code></pre>
  
  <p>Then I use following code to remove the column names and replace by the first row value:</p>
  
  <pre><code>colnames(NumbOrder2)&lt;-NumbOrder1[,1]
  NumbOrder3&lt;-data.frame(NumbOrder2[-1,])
  </code></pre>
  
  <p>Now I get the right table NumbOrder3</p>
  
  <pre><code>ChannelN    EXS   ISO  ISS 
  Order1      256   25   89                                
  Order2      242   29   74                             
  Order3      251   26   111                       
  Order4      270   43   85                             
  Order5      274   26   79
  </code></pre>
  
  <p>But the problem is: The class of column in original data frame was <code>integer</code> But now it is <code>factor</code>.I am not able to plot any chart with this new data frame.I try to convert with as.integer, but does not help.</p>
  
  <p>Any solutions to keep the format of my original data frame?  </p>