title: Save all data frames in list to separate .csv files
body: <p>I have a list of data frames that I want to save to independent .csv files. </p>
  
  <p>Currently I have a new line for each data frame:</p>
  
  <pre><code>write.csv(lst$df1, "C:/Users/.../df1")
  write.csv(lst$df2, "C:/Users/.../df2")
  ad nauseam
  </code></pre>
  
  <p>Obviously this isn't ideal: a change in the names would mean going through every case and updating it. I considered using something like </p>
  
  <pre><code>lapply(lst, f(x) write.csv(x, "C:/Users/.../x") 
  </code></pre>
  
  <p>but that clearly won't work. How do I save each data frame in the list as a separate .csv file?</p>