title: How do I preserve the data frame structure after using paste()?
body: <pre><code>&gt; list1&lt;-list("A1","A2")
  &gt; str(list1)
      List of 2
       $ : chr "A1"
       $ : chr "A2"
  &gt; list1&lt;-paste(list1,"example",sep=" ")
  &gt; str(list1)
   chr [1:2] "A1 example" "A2 example"
  </code></pre>
  
  <p>I had wanted to preserve the list structure, but it seems like pasting new values into the list changes it.</p>
  
  <p>How should I go about writing the code without affect the structure?</p>
  
  <p>Thanks.</p>