根据一般要求,一个社区维基将在R生产晚餐桌。 在这一员额中,Ill概括介绍了最常用的包裹和博客,其中含有从不太直截面的物体制作晚餐表的编码。 请自由补充我所忽略的任何情况,并(或)就如何与R一道制作冰化格式的晚餐桌,提供简便、背后和小滴。
Packages :
- xtable : for standard tables of most simple objects. A nice gallery with examples can be found here.
- memisc : tool for management of survey data, contains some tools for latex tables of (basic) regression model estimates.
- Hmisc contains a function
latex()
that creates a tex file containing the object of choice. It is pretty flexible, and can also outputlongtable
latex tables. There s a lot of info in the help file?latex
- miscFuncs has a neat function latextable that converts matrix data with mixed alphabetic and numeric entries into a LaTeX table and prints them to the console, so they can be copied and pasted into a LaTeX document.
- texreg package (JSS paper) converts statistical model output into LaTeX tables. Merges multiple models. Can cope with about 50 different model types, including network models and multilevel models (lme and lme4).
- reporttools package (JSS paper) is another option for descriptive statistics on continuous, categorical and date variables.
- tables package is perhaps the most general LaTeX table making package in R for descriptive statistics
- stargazer package makes nice comparative statistical model summary tables
Blogs and code snippets
- There is the outreg function of Paul Johnson that gives Stata-like tables in Latex for the output of regressions. This one works great.
- As given in an earlier question, there s a code snippet to adapt the memisc package for lme4 objects.
Related questions :
- Suggestion for R/LaTeX table creation package
- Rreport/LaTeX quality output package
- sorting a table for latex output with xtable
- Any way to produce a LaTeX table from an lme4 mer model fit object?
- R data.frame with stacked specified titles for latex output with xtable
- Automating adding tables fast to latex from R, with a very flexible and interesting syntax using the formula language