[R-sig-Epi] stat.table object into latex
Lauri Nikkinen
lauri.nikkinen at iki.fi
Fri May 30 08:46:57 CEST 2008
R users,
Is there a way to convert stat.table (library(Epi)) object into latex
table? I have tried xtable from (xtable package) and latex (Hmisc
package) with no success.
Example code:
install.packages("Epi")
library(Epi)
install.packages("Hmisc")
library(Hmisc)
install.packages("xtable")
library(xtable)
a <- stat.table(index=list(wool,tension),
contents=list(count(),mean(breaks),percent (wool)),
data=warpbreaks)
a
a.latex <- xtable(a)
Error in UseMethod("xtable") : no applicable method for "xtable"
a.latex <- latex(a)
Error in x[, j] : incorrect number of dimensions
Best,
Lauri
More information about the R-sig-Epi
mailing list