I ma trying to save a number of data frames from a list in separate directory. something is wrong with my code:
lapply(na_s, function (x) write.csv(na_s[[x]],file = paste('/na_s_daily/',names (na_s[x]),'.csv',sep=""), row.names = F))
Error code:
Error in na_s[[x]] : invalid subscript type 'list'
Anybody can see what I am doing wrong?