Re: [R] Writing out data

2012-02-02 Thread R. Michael Weylandt
I believe connections were designed to do this as efficiently as possible by keeping the i/o path "open" rather than reopening it each time like write.table(append = TRUE) would do, though I may be wrong on the details: see ?connections. Prof Ripley has a good article about them in R News 1.1 -- ht

Re: [R] Writing out data

2012-02-02 Thread Ivan Calandra
Correct me if I'm wrong, but I think that write.csv() doesn't have an append argument; write.table() does though. Ivan -- Ivan CALANDRA Université de Bourgogne UMR CNRS/uB 6282 Biogéosciences 6 Boulevard Gabriel 21000 Dijon, FRANCE +33(0)3.80.39.63.06 ivan.calan...@u-bourgogne.fr Le 02/02/12

Re: [R] Writing out data

2012-02-02 Thread Paul Hiemstra
On 02/02/2012 11:40 AM, Thomas wrote: > What is the best way to write out comma separated data, as a program > is running (rather than waiting to the end using write.csv)? At the > moment I'm doing this, but I guess it's not the most efficient. The > data is in a column in the matrix postcount, and

[R] Writing out data

2012-02-02 Thread Thomas
What is the best way to write out comma separated data, as a program is running (rather than waiting to the end using write.csv)? At the moment I'm doing this, but I guess it's not the most efficient. The data is in a column in the matrix postcount, and I'm using a loop to write out each of

Re: [R] Writing out data from a list

2011-01-13 Thread Jinyan Huang
a<- list(a=c(0.00,0.00),b=c(2,2,2),c=c(3,3,3)) t<-NULL m<-1 for( i in a) {t<-c(t,paste("Event",m),i);m<-m+1} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posti

[R] Writing out data from a list

2011-01-13 Thread Aaron Lee
Hello, I have a list of data, such that: [[1]] [1] 0.00 0.00 0.03 0.01 0.00 0.00 0.00 0.00 0.01 0.01 0.00 0.00 0.01 0.00 0.00 0.03 0.01 0.00 0.01 0.00 0.03 0.16 0.14 0.02 0.17 0.01 0.01 0.00 0.00 0.03 0.00 0.00 0.00 0.00 0.00 0.01 0.00 0.00 0.00 0.00 0.00 [42] 0.00 0.00 0.00 0.00 0.01 0.00 0.00