[R] problem of writting large data into files

Uwe Ligges ligges at statistik.uni-dortmund.de
Fri Nov 26 12:49:04 CET 2004


Hu Chen wrote:

> Hi all.
> I used to use write.table() to write data into file. However , it
> seems that write.table() waste a lot of memory on caching temporary
> variables. Thus it ofen fails on writting larg matrix/frame into file.
> I noticed that write.matrix() may be better. But how could I write the
> column names and row names into file, such as "date" "buy" "sell",
> instead of "[,1]" , "[,2]" , "[,3]"?

What about specifying colnames for the matrix / data frame?
[I guess we are talking about package MASS.]

Uwe Ligges





> Anyone has some experience about this? Any other functions work better?
> Thanks in advance.
>                              Tiger
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html




More information about the R-help mailing list