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
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
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
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
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
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
6 matches
Mail list logo