[R] How to save results from chisq.test or mantelhaen.test to file

adschai at optonline.net adschai at optonline.net
Sun Jul 1 02:19:25 CEST 2007


Hi,

I am new to these functions. I'm wondering if there is anyway to save the entire results (all attributes of the result object) from the chisq.test or mantelhaen.test functions? For example, from chisq.test function, you will have statistic, parameter, p.value, expected, etc. in the result list. How can I save all of them in one shot to, says, a text file or csv file? Thank you.

- adschai



More information about the R-help mailing list