R Write a Date Frame to CSV File

In R, we can easily write a date frame object to a csv file. By using the method write.csv, the csv file can be generated under the same directory of your R script.

write.csv(dataFrame, file="median.csv")
Category >> R  
If you want someone to read your code, please put the code inside <pre><code> and </code></pre> tags. For example:
String foo = "bar";