title: write.csv on a list of data frames
body: <p>I ma trying to save a number of data frames from a list in separate directory. something is wrong with my code: </p>
  
  <pre><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)) 
  </code></pre>
  
  <p>Error code: </p>
  
  <pre><code>Error in na_s[[x]] : invalid subscript type 'list'
  </code></pre>
  
  <p>Anybody can see what I am doing wrong? </p>