Extracting Number From Cell in R
<p>Maybe this question has been asked but I couldn't find a solid answer because of the pattern in my data -- hopefully it will be simple to answer. I have polling data that has columns that look similar to this:</p>

<pre><code>Sample
1000 RV
456 LV
678 A
</code></pre>

<p>I want to take off the letters, put them in one cell and the numbers in another so that it will look like this:</p>

<pre><code>Sample    Type
1000      RV
456       LV
678       A
</code></pre>

<p>How can I simply do this without going cell by cell?</p>