[R] alternatives to latex() or xtable() ?

From: Liviu Andronic <landronimirc_at_gmail.com>
Date: Wed, 5 Dec 2007 13:02:36 +0100


Hello everyone,

I have several problems with exporting to LaTeX the output of numSummary() from the abind package.

> numSummary(finance[,"Cash_flow"], statistics=c("mean", "sd", "quantiles"))

     mean sd 0% 25% 50% 75% 100% n NA  188070.9 414771.9 -426804 26743 53866 150975.5 1871500 54 4

> xtable(numSummary(finance[,"Cash_flow"], statistics=c("mean", "sd", "quantiles")))
Error in UseMethod("xtable") : no applicable method for "xtable"

> latex(numSummary(finance[,"Cash_flow"], statistics=c("mean", "sd", "quantiles")))

The latter gives me much more verbose error messages (please see the attached log). Checking the temporary files, I found the tex code generated by latex() and tried it in LyX, but the document fails to compile.

Could anyone please suggest either (1) alternative commands to latex() or xtable() or (2) a way to tweak the latter commands so that these work with numSummary()?

Thanks in advance,
Liviu



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 05 Dec 2007 - 12:07:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 05 Dec 2007 - 12:30:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.