简体   繁体   English

R - Flextable 和分页(或滚动条)

[英]R - Flextable and paging (or rollbars)

Q/ Is there a way to have paging or rollbars using the package flextable in R ? Q /有没有办法有传呼或使用R中的包flextable rollbars?

I know it's possible with the package DT .我知道包DT是可能的。 I didn't find the answer on the documentation or the vignette for flextable.我没有在文档或 flextable 小插图中找到答案。 As this package is for publication, maybe it is not its purpose to propose such a functionnality.由于此包是用于发布的,因此提出这样的功能可能不是其目的。

The objective is to print a table with a lot of rows, but without taking a lot of place in the html.目标是打印一个包含很多行的表格,但不会在 html 中占据很多位置。

library(DT)
DT::datatable(mtcars)

在此处输入图片说明

library(flextable)
flextable::flextable(mtcars)
# the whole table will be printed

No, sorry sir.不,对不起先生。 There is not a way to do that with the package DT.使用包 DT 无法做到这一点。 You'll need to download the package TSP and use library(TSP) TSP::solute.mtcars TSP::datatable(mtcars)您需要下载包 TSP 并使用 library(TSP) TSP::solute.mtcars TSP::datatable(mtcars)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM