dcolumn not available. Solution or alternative (for use with texreg)?

会有一股神秘感。 提交于 2019-12-11 06:28:50

问题


I would like to use dcolumn to align table columns in a texreg output, as recommended in the user guide for texreg.

However, dcolumn seems not available for the current version of R:

> install.packages("dcolumn")
Warning in install.packages :
package ‘dcolumn’ is not available (for R version 3.4.3) 

Any solution/recommendation for an alternative approach? (Tables will be compiled with knitr in RStudio.)


回答1:


dcolumn is not an R package (CRAN) but it is a LaTex package (CTAN). Have you tried calling the dcolumn package in your markdown file?

here example with beamer:

How can I use latex packages in R markdown beamer?



来源:https://stackoverflow.com/questions/50375041/dcolumn-not-available-solution-or-alternative-for-use-with-texreg

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!