HI I want to write objects of list into different csv files, how do i do that like I want elements of dataFrame "a" to be written into different csv file, elements of dataFrame "b" to be written into different csv file and so on. any help would be much appreciated this is what I have tried
a = data.frame(1:5)
b = data.frame(c(11,22,33,44,55))
d = data.frame(c("aa","bb","cc","dd","ee"))
e = data.frame(c(TRUE,FALSE,TRUE,TRUE,FALSE))
g = data.frame(c(1,0,1,0,1))
myList <- list(a,b,d,e,g)
myfunction <- function(myList) {
for(i in 1:myList) {
write.table(myList[i], file = paste(names(myList), ".csv", sep = "",sep = ",")
}
}