Displaying 2 results from an estimated 2 matches for "nbfiles".
Did you mean:
dbfiles
2005 Oct 03
3
Save output
Dear R-Mastermind
Within a while or a for-loop, is there a way that I can save to disk the
results of the previous calculations at the end of each loop with filenames
called "file01.Rdata", "file02.Rdata" etc?
So far, I have tried to write the outcome of each loop in a 3 dimensional
array and saved it just once after the loop. Or is there another way so that
I can keep
2005 Sep 22
7
Automatic creation of file names
Dear R-Help members,
I have a question about how to save to the hard drive the one thousand
datasets I generated in a simulation. The datasets are created in a
"for" loop that repeatedly creates normally distributed datasets, such
as the example below:
Library(MASS)
for (number in 1:1000) {
dataset = mvrnorm(n = 400, mu = c(0,0,0),
Sigma =