Displaying 1 result from an estimated 1 matches for "z_001".
Did you mean:
_001
2010 Jul 13
1
Batch file export
...= 1)
Every time a vector has been generated I would like to export it into a csv
file. So my idea is something as follows:
for (i in 1:100) {
z <- rlnorm(1000, meanlog = 0, sdlog = 1)
write.csv(z, "c:/z_i.csv")
Where "z_i.csv" is a filename that is related to the run (e.g. z_001.csv,
z_002.csv, ...).
Could anyone please advice me on the most convenient way of doing this?
Thanks very much in advance,
Michael
[[alternative HTML version deleted]]