简体   繁体   English

是否可以在 R 中使用降价显示/隐藏表格行

[英]Is it possible to show/hide table rows with markdown in R

I output a html file using rmarkdown package.我使用 rmarkdown 包输出一个 html 文件。 In the medium of html file, there is a big table which consumes a lot of page area, so I want to collapse the big table and allow the user to use the drop down to view the table.在html文件的介质中,有一个大表格,占用了很多页面区域,所以我想折叠大表格,让用户使用下拉查看表格。 Do you have any methods to insert a dynamic table which can hide/show rows and output other tables and graphs(using markdown) together into one html file ?您是否有任何方法可以插入一个动态表格,该表格可以隐藏/显示行并将其他表格和图形(使用 Markdown)一起输出到一个 html 文件中?

Would the following solution be an alternative solution for you?以下解决方案是否是您的替代解决方案? I find it to be helpful to me anyway.反正我觉得对我有帮助。 Share it with you, hopefully it is a trick.分享给大家,希望是个窍门。

https://github.com/rstudio/gt/issues/2 https://github.com/rstudio/gt/issues/2

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

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