Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201894

Creating an R loop for writing CSV files from tables

$
0
0

I have a number of tables in R studio, named "zero.cells", "one.cells" (etc) up to "fifteen.cells".

I would like to write all of these tables in csv using write.csv2, for example write.csv2(zero.cells, file = "zero.cells.csv")

Is there a loop I can use to get this done rather than having to write all of this out for every single file? Thanks!


Viewing all articles
Browse latest Browse all 201894

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>