This really depends on what your output is. As previously suggested
save() and write() are excellent suggestions.
for(ii in 1:1000){
out <- cor( x[ii, ], y[ii, ] ) # or whatever
cat(ii, "\t", out, "\n", append=TRUE, file="output.txt")
}
This method is really not worth it for smal
Do you want "write(..., append=TRUE)"?
If not, please provide a toy problem that shows clearly what you
thought should work and why it is not satisfactory. You are more likely
to get what you want from this list if someone else can pick up your
scrap of code and try something in 30 secon
On 07/11/03 09:58, C.E.Marshall wrote:
>I am running simulations calculating correlation coefficients from bivariate
>data and I was wondering whether there is a way of exporting 1000 simulation
>results from R to a text file or to another file for further manipulation. I
>am having difficulty I