title: R Apply Function for Formatting Many Datasets
body: <p>I would like to loop through nine data sets, perform calculations, and output a different file name.</p>
  <p>Existing Code:</p>
  <pre><code>    list &lt;- c(corporate_service, finance, its, law, market_services, operations, president, member_services, System_Planning)
  
      Calc &lt;- function(list){
    
           list %&gt;%  filter(Total_Flag == 1) %&gt;%
                     select(Element, Amount, Total)
  
       }
    
       lapply(list, Calc)
  </code></pre>
  <p>I would like to loop through each dataset and apply the function above.  More specifically, I would like to re-name each processed dataframe something different.  Is there a way to do this? I should also note, this code has not worked for me - is there anything noticeably wrong?</p>
  <p>Thanks</p>