R-markdown:多行块中的格式表

时间:2019-02-21 10:40:42

标签: r r-markdown knitr

我有这样一张桌子:

dat <- data.frame(title=c("some title","other title but longer","third title but even longer than previous"),owner=c("John","Alice","Peter"),labels=c("Urgent","to do","done"),content=c("some content that may spans multiple lines bla bla bla","awesome content that may spans multiple lines bla bla bla","boring content that may spans multiple lines bla bla bla"))



#                                       title owner labels                                                   content
# 1                                some title  John Urgent    some content that may spans multiple lines bla bla bla
# 2                    other title but longer Alice  to do awesome content that may spans multiple lines bla bla bla
# 3 third title but even longer than previous Peter   done  boring content that may spans multiple lines bla bla bla

我想以此形式在rmd文件中显示此表。预期的输出是html和word。

enter image description here

谢谢

0 个答案:

没有答案