title: Function to export workspace objects(data frames) to csv files
body: <p>I want to batch export data frames in my workspace having the string "obj" in their names to a csv file with the same name</p>
  
  <p>I thought of the following code, which unfortunately does not work.</p>
  
  <pre><code>for (i in ls(pattern="obj")){
  write.csv2(i, paste(i,".csv", sep=""))
  }
  </code></pre>
  
  <p>Any ideas? Thank you in advance</p>