title: R splitting a column of character separated by different number of spaces
body: <p>I have a data frame with a column consisting of words separated by a varying number of spaces for example:</p>
  
  <pre><code>head(lst)
  'fff fffd ddd'
  'sss dd'
  'de dd'
  'dds sssd eew rrr'
  'dsds eed'
  </code></pre>
  
  <p>What I would like to have is 2 columns:
  The first column is the part before the first space
  And the second column is the part after the last space
  meaning it should like  this</p>
  
  <pre><code>V1       v2
  'fff'   'ddd'
  'sss'   'dd'
  'de'    'dd'
  'dds'   'rrr
  'dsds'  'eed'
  </code></pre>
  
  <p>The first column I am able to get but the second one is a problem
  This is the code I use.</p>
  
  <pre><code>  lst &lt;- strsplit(athletes.df$V1, "\\s+")
    v1 &lt;- sapply(lst ,`[`, 1)
    v2 &lt;- sapply(lst, `[`, 2)
  </code></pre>
  
  <p>What I get I get for column v2 is the second word. I know it's because I put 2 inside the sapply How do I tell it to only take what comes after the last space?</p>