title: How to strsplit different number of strings in certain column by do function
body: <p>I have a problem with split column value when element of column has different number of strings. I can do it in plyr e.g.:</p>
  
  <pre><code>library(plyr)
  column &lt;- c("jake", "jane jane","john john john")
  df &lt;- data.frame(1:3, name = column)
  df$name &lt;- as.character(df$name)
  df2 &lt;- ldply(strsplit(df$name, " "), rbind)
  View(df2)
  </code></pre>
  
  <p>As a result, we have data frame with number of column related to maximum number of stings in given element.</p>
  
  <p>When I try to do it in dplyr, I used <code>do</code> function:</p>
  
  <pre><code>library(dplyr)
  df2 &lt;- df %&gt;%
    do(data.frame(strsplit(.$name, " ")))
  </code></pre>
  
  <p>but I get an error:</p>
  
  <blockquote>
  <pre><code>Error in data.frame("jake", c("jane", "jane"), c("john", "john", "john" : 
  arguments imply differing number of rows: 1, 2, 3
  </code></pre>
  </blockquote>
  
  <p>It seems to me that it should be used <code>rbind</code> function but I do not know where. </p>