title: How do I split a column of factors into multiple columns of multiple factors?
body: <p>Say I have a data frame that looks like this:</p>
  
  <pre><code>Factor     Value
  ======     =====
  1A.In      1.0
  1A.Out     2.6
  1B.In      0.5
  1B.Out     3.4
  2A.In      5.5
  </code></pre>
  
  <p>etc.</p>
  
  <p>My goal is to add columns to the data frame that extract information from the single Factor column, as such:</p>
  
  <pre><code>Factor   Value   Fact1     Fact2     Fact3
  ======   =====   =====     =====     =====
  1A.In    1.0     1         A         In  
  1A.Out   2.6     1         A         Out
  1B.In    0.5     1         B         In
  1B.Out   3.4     1         B         Out
  2A.In    5.5     2         A         In
  </code></pre>
  
  <p>I just cannot figure out how to do this without using subset ad nauseum. I'm relatively new to R, and don't have a background in programming, so any advice would be much appreciated.</p>