title: Insert substring into character object in R
body: <p>I'm manipulating a regression table produced by the <code>stargazer</code> package, which creates a table and stores it as a character object of length greater than 1 (naturally).</p>
  
  <p>I would like to manipulate that character object by inserting some information about the model (e.g. grouping some variables for more information to the reader). Ultimately, it's a process of inserting multiple "rows" of characters/strings into an existing character object.</p>
  
  <p>Here's a minimal working example.</p>
  
  <pre><code>thislittle &lt;- c("this", "little", "to", "the", "market")
  piggywent &lt;- c("piggy", "went")
  </code></pre>
  
  <p>I would like to insert <code>piggywent</code> into <code>thislittle</code> to get this <code>complete</code> object. </p>
  
  <pre><code>&gt; complete
  [1] "this"   "little" "piggy"  "went"   "to"     "the"    "market"
  </code></pre>
  
  <p>For my specific purposes (beyond this minimal working example), I need to specify the exact element (here: the second) after which to insert this other character object.</p>
  
  <p>Here's where I confess that this is probably a simple task but I'm completely unaccustomed to manipulating strings and character objects in R. I'm also unfamiliar with the terminology, which made searches fruitless. I've figured out how to overwrite some rows, but that's about it.</p>
  
  <p>Any advice would be greatly appreciated.</p>