r markdown中的桌子
我想在R Markdown中创建一个手动表,我的目标是将最终输出如下:
我尝试了以下代码,但它没有起作用:
Authority | Responsibility | Period
:----- | :---- | :-----
MOIWR | Text 1 | 2010
^^ | Text 2 | 2011
^^ | Text 3 | 2012
IWC | Text 4 | 2013
SGB | Text 5 | |
您能帮我弄清楚如何做到这一点!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Pandoc是R Markdown中使用的转换器,尚未支持带有多个行和/或列的单元格的标记表。一个很好的解决方法是在html中写下表,然后在a 。
以下过滤器检测到HTML表,并确保可以将其转换为不同的输出格式:
使用这样的过滤器:
Pandoc, the converter used in R Markdown, does not yet support Markdown tables with cells spanning multiple rows and/or columns. A good workaround is to write the table in HTML and to parse it in a Lua filter.
The following filter detects HTML tables and makes sure they can be converted to different output formats:
Use the filter like this: