title: [R]Split a character vector into data frame rows by set number of columns
body: <p>I can't seem to find this specifically (I looked here: <a href="https://stackoverflow.com/questions/22455884/how-to-split-a-character-vector-into-data-frame">How to split a character vector into data frame?</a>) and a few other places.</p>
  
  <p>I am trying to split a character vector in R into a data frame, with a set number of columns, filling in NA for any extras or missing. As below (reproducible):</p>
  
  <pre><code>###Reproduce column vector
  cv &lt;- c("a1", "b1", "c1", "d1", "e1", "f1", "aa2", "bb2", "cc2", "dd2", "ee2", "ff2", "x1", "x2", "x3", "x4", "x5", "x6", "rr2", "tt3", "bb4")
  
  ###Desired data frame separating 6 columns
  df.desired &lt;- data.frame(col1=c("a1","aa2","x1","rr2"),col2=c("b1","bb2","x2","tt3"),col3=c("c1","cc2","x3","bb4"),col4=c("d1","dd2","x4",NA),col5=c("e1","ee2","x5",NA),col6=c("f1","ff2","x6",NA),stringsAsFactors = F)
  </code></pre>
  
  <p>Thanks in advance!</p>