title: Using ls and rbind_all to combine multiple data frames
body: <p>I'm trying to use ls and rbind_all to combine multiple data.frames by row. Here's my code:</p>
  
  <pre><code>pc.files &lt;- ls(pattern="*_pc") #look for all files with "_pc" at end
  all.pc &lt;- rbind_all(list(pc.files)) #rbind them
  </code></pre>
  
  <p>but! </p>
  
  <pre><code>Error: object at index 1 not a data.frame
  </code></pre>
  
  <p>Is this because pc.files is a character vector? All the *_pc datasets are data.frame. I can't work out why this isn't working..</p>
  
  <p>thanks</p>