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

Liviu Andronic landronimirc at gmail.com
Wed Dec 5 13:02:36 CET 2007


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


More information about the R-help mailing list