DT:有没有办法在 google colab 中使用 r 作为交互式表格来显示数据帧?

问题描述 投票:0回答:1

您是否知道使用 R 在 colab 中显示数据框的“好”方法,最好是作为交互式表格? 我正在尝试下面的代码(我通常在 rstudio 中使用),但它在 colab 中不起作用。

library(datasets)

data(iris)

library(DT)
DT::datatable(iris) #this typically displays a beautiful interactive html table, but not working with colab


#these display a simple table
View(iris)

fix(iris)

我做了一些搜索,看起来有一种很好的方法可以在Python下的colab中显示带有过滤器的交互式表格https://colab.research.google.com/notebooks/data_table.ipynb#scrollTo=jcQEX_3vHOUz

但是我找不到 R 的类似内容。你有什么建议吗?

谢谢你

r dataframe google-colaboratory dt
1个回答
0
投票

好问题!

您可能想尝试一下

rmarkdown::paged_table()

© www.soinside.com 2019 - 2024. All rights reserved.