[R] Writting multiple tables to csv

baked Toast baked.toast at gmail.com
Fri Jun 19 23:20:21 CEST 2009


Hey,

Is it possible to write multiple tables at once to a cvs file? Because
these tables are of different lengths I can not use cbind. When I use
following:

Test <- c(capture.output(table(test1),capture.output(table(test2))
write.table(Test,”test.csv”,row.names=FALSE,sep=”\t”)

I receive messy, unusable csv files.

So my question is, is it possible to use similar tools or other
functions to write multiple tables to a csv file at once?

Thanks in advance.

Kind regards,




More information about the R-help mailing list