Is it possible to have wide and long form data written to the same CSV in R?
<p>I have two sets of data, one works best in long form and second works best wide form. </p>

<p>Data1:</p>

<pre><code>Group   Min.    1st.Qu. Median  Mean    3rd.Qu. Max.
  A     0.04059 0.08226 0.08383 0.1053  0.1367  0.1748
  B     0.03587 0.04283 0.06695 0.06186 0.08141 0.08226
  C     0.05154 0.08919 0.1114  0.1133  0.1449  0.1797
</code></pre>

<p>data2:</p>

<pre><code> A    B      C
123  454    678
234  42524  678
436  462456 54
345  42562  5645
564  5656   2
</code></pre>

<p>It would be super cool if I could I could have them like this, human and machine readable.</p>

<pre><code>Group   Min.    1st.Qu. Median  Mean    3rd.Qu. Max.     A     B      C
  A     0.04059 0.08226 0.08383 0.1053  0.1367  0.1748   3423  234324 23423
  B     0.03587 0.04283 0.06695 0.06186 0.08141 0.08226  67    3435   34534
  C     0.05154 0.08919 0.1114  0.1133  0.1449  0.1797   4534  3345   34534
                                                         34534 345    3453
                                                               34567  3434
                                                                      657
</code></pre>

<p>Is this an overly complicated thing to do because of the different numbers of rows?</p>

<ul>
<li>edit: To explain the data a little more, the last trailing columns are the data values that the summary statistics are derived from</li>
</ul>