title: Split String With Numbers in R
body: <p>I have the following string:</p>
  
  <pre><code>employees
  
  [1] "e1 e2 e3 e4 e5"
  </code></pre>
  
  <p>and i want to separate it in five different elements, like this:</p>
  
  <pre><code>"e1" "e2" "e3" "e4" "e5"
  </code></pre>
  
  <p>I tried to solve this problem using the following line:</p>
  
  <pre><code>strsplit(employees,"" )
  </code></pre>
  
  <p>which yields this result:</p>
  
  <pre><code>[1] "e" "1" " " "e" "2" " " "e" "3" " " "e" "4" " " "e" "5"
  </code></pre>
  
  <p>What can i do to solve the problem and avoid the separation of characters and numbers?</p>
  
  <p>Thank you!</p>