我正在准备 R markdown 演示文稿,但我找不到如何排列表格 View 。例如,所有数字都左对齐。
有没有一种简单的方法来排列 R markdown 表? 谁能推荐有关 R markdown 演示文稿的高级资源?
提前致谢
最佳答案
我找到了resources on the Rmarkdown website相当不错。下面的例子展示了如何对齐简单的表格。
Right Left Center Default
------- ------ ---------- -------
12 12 12 12
123 123 123 123
1 1 1 1
Table: Demonstration of simple table syntax.
The headers and table rows must each fit on one line. Column alignments are determined by the position of the header text relative to the dashed line below it:
If the dashed line is flush with the header text on the right side but extends beyond it on the left, the column is right-aligned.
If the dashed line is flush with the header text on the left side but extends beyond it on the right, the column is left-aligned.
If the dashed line extends beyond the header text on both sides, the column is centered.
If the dashed line is flush with the header text on both sides, the default alignment is used (in most cases, this will be left).
关于r-markdown - 如何在 R Markdown 演示文稿中插入平滑表格 slidy、ioslides 或 beamer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26562999/