title: cSplit function in R
body: <pre><code>jnk &lt;- data.table(a=c('1,2,3,4,5','1,2,3','2,3'),b=c('5,2,3','4,2',3))
  </code></pre>
  
  <p>Can I do a split using both the columns a and b? If we use
  [Undesired_Output][1] H= cSplit(jnk,"a",",","long"), we get the output as shown in image 1. However I want the output where my dataframe looks like shown below after execution of the following commands:</p>
  
  <pre><code>b=c(rep(5,5),rep(2,5),rep(3,5),rep(4,3),rep(2,3),3,3)
  
  a=c(1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,1,2,3,1,2,3,2,3)
  
  p=data.frame(A=a,B=b) 
  </code></pre>