title: R: Loading data from folder with multiple files
body: <p>I have a folder with multiple files to load:</p>
  
  <p><img src="https://i.stack.imgur.com/223st.png" alt="enter image description here"></p>
  
  <p>Every file is a list. And I want to combine all the lists loaded in a single list. I am using the following code (the variable loaded every time from a file is called <code>TotalData</code>) :</p>
  
  <pre><code>Filenames &lt;- paste0('DATA3_',as.character(1:18))
  Data &lt;- list()
  for (ii in Filenames){
        load(ii)
        Data &lt;- append(Data,TotalData)
  }
  </code></pre>
  
  <p>Is there a more elegant way to write it? For example using apply functions?</p>