title: apply strsplit rowwise
body: <p>Im trying to split a string on "." and create additional columns with the two strings before and after ".".</p>
  
  <pre><code>tes&lt;-c("1.abc","2.di","3.lik")
  dat&lt;-c(5,3,2)
  h&lt;-data.frame(tes,dat)
  h$num&lt;-substr(h$tes,1,1)
  
  h$prim&lt;-unlist(strsplit(as.character(h$tes),"\\."))[2]
  h$prim&lt;-sapply(h$tes,unlist(strsplit(as.character(h$tes),"\\."))[2])
  </code></pre>
  
  <p>I´d like <code>h$prim</code> to contain "abc","di","lik"..However I´m not able to figure it out. I guess <code>strsplit</code> is not vectorized, but then I thought the <code>sapply</code> version should have worked.  However I assume it should be easy:-)</p>
  
  <p>Regards,
  //M</p>