df2latex {psych} | R Documentation |
A handy helper function to convert data frames or matrices to LaTeX tables. Although Sweave is the preferred means of converting R output to LaTeX, it is sometimes useful to go directly from a data.frame or matrix to a LaTeX table.
df2latex(x,digits=2,rowlabels=TRUE,caption="df2latex")
x |
A data frame or matrix to convert to LaTeX |
digits |
Round the output to digits of accuracy. NULL for formatting character data |
rowlabels |
If TRUE, use the row names from the matrix or data.frame |
caption |
The table caption |
A LaTeX table
William Revelle
The many LaTeX conversion routines in Hmisc.
df2latex(Thurstone,rowlabels=FALSE) df2latex(describe(sat.act)[2:10])