title: String splitting a dataframe with a vector as the pattern in R
body: <p>I have a dataframe that consists of multiple rows, and I would like to split every row into two components based off of elements of a vector (essentially run strsplit with a vector as the 'pattern') in R.</p>
  
  <p>The dataframe (only one column) looks something like this:</p>
  
  <pre><code>     [,1]                
  [1,] "apple please fuji" 
  [2,] "pear help name"    
  [3,] "banana me mango"   
  </code></pre>
  
  <p>Whereas my pattern vector could look like this: <code>v &lt;- c("please", "help", "me")</code>.</p>
  
  <p>If possible, I would like my <em>end</em> output to be:</p>
  
  <pre><code>  df$name             df$part1  df$split  df$part2   
   "apple please fuji" "apple"    "please"  "fuji" 
   "pear help name"    "pear"     "help"    "name" 
   "banana me mango"   "banana"   "me"      "mango"
  </code></pre>
  
  <p>I would appreciate any help with the in-between step of being able to isolate components based on a vector, but if there is an even easier way to put it into a dataframe, that would be great!. Thank you so much!</p>