I have a list with two data frames. I want to loop thru the list and write a CSV for each data frame and name it after the data frame name.
library(ggplot2) myLi
You can also use mapply:
mapply
myList <- list(diamonds = diamonds, cars = cars) mapply(write.csv, myList, file=paste0(names(myList), '.csv'))