title: Specify path in write.csv function
body: <p>I have a simple syntax question: Is there a way to specify the path in which to write a csv file within the <code>.csv</code> function itself?</p>
  
  <p>I always do the following:</p>
  
  <pre><code>setwd("C:/Users/user/Desktop")
  write.csv(dt, "my_file.csv", row.names = F)
  </code></pre>
  
  <p>However, I would like to skip the <code>setwd()</code> line and include it directly in the <code>write.csv()</code> function. I can't find a path setting in the <code>write.csv</code> documentation file. Is it possible to do this exclusively in <code>write.csv</code> without using <code>write.table()</code> or having to download any packages?</p>
  
  <p>I am writing around 300 <code>.csv</code> files in a script that runs auomatically everyday. The loop runs slower when using <code>write.table()</code> than when using <code>write.csv()</code>. The whole reason I want to include the path in the <code>write.csv()</code> function is to see if I can decrease the time it takes to execute any further.</p>