Hey all, I&#39;m hoping someone will be able to help me. I have a list of 178 food web matrices in R -- I want to export these individually using the &#39;write.csv&#39; function, but I also want to use the loop number to name each subsequent .csv file. I have a regional matrix called &#39;master3&#39; grouped as a list, I can pull out local food webs using master3[[i]] where i denotes the i&#39;th food web. I want to export each individual locality as a csv file named after the corresponding loop number (e.g. for master[[4]], output &#39;master_4.csv&#39;) Something like:<div>
<br></div><div><div>for (i in 1:length(master3)) {</div><div>  write.csv(master3[[i]], file = master_i)</div><div>}</div></div><div><br></div><div>But that doesn&#39;t seem to make R happy. Any help at all would be appreciated, I&#39;d like to avoid doing it manually.</div>
<div><br></div><div>-Ashkaan</div>