title: Split string by last two characters in R? (/negative string indices)
body: <p>My data frame looks like:</p>
  
  <pre><code>b &lt;- data.frame(height = c(190,165,174,176), name = c('John Smith 34','Mr.Turner 54', 'Antonio P. 23', 'John Brown 31'))
  
  #   height          name
  # 1    190 John Smith 34
  # 2    165  Mr.Turner 54
  # 3    174 Antonio P. 23
  # 4    176 John Brown 31
  </code></pre>
  
  <p>As we can see name and age are the same value. So I want to split it by last two characters in string:</p>
  
  <pre><code>  height       name age
  1    190 John Smith  34
  2    165  Mr.Turner  54
  3    174 Antonio P.  23
  4    176 John Brown  31
  </code></pre>
  
  <p>How I can do that?</p>