Skip to content
Back to formatted view

Raw Message

Message-ID: <001901c3e45f$dff6def0$78f05a99@msu.montana.edu>
Date: 2004-01-26T22:57:42Z
From: Andy Bunn
Subject: write.table file="file.txt" help
In-Reply-To: <18f7e6192756.19275618f7e6@jhsph.edu>

Look at ?paste

for (j in 1:10) { 
   write.table(j, file=paste("haplo.txt", j, sep="."), 
               row.names=F, col.names=F, append=F, quote=F)
}

BTW, there have been many similar posts like this in the past. They are
easily found using the search function at 
http://cran.r-project.org/search.html 

HTH, Andy