R: Reshape data into a single row
<p>I have a data frame that looks something like this</p>

<pre><code>A B    C
x 2013 23
x 2014 47
x 2015 83
</code></pre>

<p>I'd like to transform it so that I have all data and other dimensions for x in one row:</p>

<pre><code>A B    C  D    E   F    G
x 2013 23 2014 47  2015 83
</code></pre>

<p>How can I do this using R? Can I use the Reshape package?</p>

<p>Many thanks,</p>

<p>Jim</p>