在nitr中使用apaTables或apaStyles软件包 [英] Using apaTables or apaStyles packages with knitr

查看:98
本文介绍了在nitr中使用apaTables或apaStyles软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

社会科学家使用 APA样式设置表格和文档的格式.有像stargazerxtable这样的软件包(这里是详尽的列表)为使用latexknitr的用户提供干净的表格格式. 但是,这些软件包在所有情况下均不符合APA样式规则.

Social scientists format tables and documents with APA style. There are packages like stargazer and xtable (here is an extensive list) that provide clean table formatting for those using latex and knitr. However, these packages do not conform to APA style rules in all cases.

从头开始构建和格式化表格非常耗时.幸运的是,有两个R软件包用于创建符合APA样式准则的表和文档:apaStyleapaTables.不幸的是,两个软件包都只输出到MS Word.

Building and formatting tables from scratch is time consuming. Fortunately, there are two R packages for creating tables and documents compliant with APA style guidelines: apaStyle and apaTables. Unfortunately, both packages only output to MS Word.

  • 是否有一种使用APAStyleAPATables的方式,以便输出 是否集成到.Rmd文件的HTML或PDF输出中?
  • 您使用什么 other 软件包在.Rmd文件中创建APA样式表,尤其是在使用knitr创建PDF文件时.
  • Is there a way to use APAStyle and APATables so that output is integrated into HTML or PDF output from a .Rmd file?
  • What other packages do you use to create APA style tables in your .Rmd file—especially when using knitr to create PDF files.

推荐答案

关于第二个问题,请从Frederik Aust的软件包papaja中检出apa_table().我发现它对于以APA样式报告所有输出(不仅是表格)非常有用.

Concerning your second question, check out apa_table() from Frederik Aust's package papaja. I found it incredibly helpful for reporting all output in APA style (not only tables).

  • These installation instructions and user guide helped me to get started.
  • However, to see how much you can actually do with papaja, I greatly benefitted from this openly accessible example paper.

这篇关于在nitr中使用apaTables或apaStyles软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆