[R] Writing to a file
thomas.parr at maine.edu
Fri Dec 3 05:00:04 CET 2010
From: Thomas Parr [mailto:thomas.parr at maine.edu]
Sent: Thursday, December 02, 2010 10:52 PM
To: r-help-request at stat.math.ethz.ch
Subject: Writing to a file
I am trying to get my script to write to a file from the for loop. It is
"working", but the problem is at it is outputting to two columns and I want
it to output to 5.
Data is being extracted from "nls" output with "summary", "nls" uses "fit."
a<-summary(nls(acoeff ~ aref*exp(-S*(alam-375)), trace=T,
The idea is that it is looping through the data sites and as "nls" generates
parameter estimates, "summary" extracts them and "cat" writes them to a CSV
Note: have tried write.csv, write.table, and write I thing they all call
"cat" at some point.
Any help would be appreciated and if you have a different solution I am all
More information about the R-help