I would like to export several dataframes as separate csv files to the working directory with a loop rather than writing out all of th names
##Sample data frame
employee <- c('John Doe','Peter Gynn','Jolie Hope')
salary <- c(21000, 23400, 26800)
startdate <- as.Date(c('2010-11-1','2008-3-25','2007-3-14'))
d30 <- data.frame(employee, salary, startdate)
##Creating a few of the same name for illustrative purposes
d39 <- data.frame(employee, salary, startdate)
d40 <- data.frame(employee, salary, startdate)
for (list in c(d30,d39)){
write.csv(list, file="list.csv", row.names = FALSE)
}
Obviously I'm quite wrong. But I can't figure out how to do it.