title: Automatically using the object name as file name with write.table or write.csv
body: <p>Is there a way to have the object name become the file name character string when using write.table or write.csv?</p>
  <p>In the following, a and b are vectors. I will be doing similar comparisons for many other pairs of vectors, and would like to not write out the object name as many times as I have been doing.</p>
  <blockquote>
  <p>unique_downa&lt;-a[!(a%in%b)]</p>
  <p>write.csv(unique_downa,file=&quot;unique_downa.csv&quot;)</p>
  </blockquote>
  <p>Or if anyone has a suggestion for a better way to do this whole process, I'd be happy to hear it.</p>