DT: is there a way to display dataframe using r in google colab as interactive table?
Asked Answered
B

1

6

Are you aware of a "nice" way to display the dataframe in colab using R, preferably as an interactive table? I am trying the code below (which I typically use in rstudio) but it is not working in 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)

I did some search and looks like there is a nice way to display interactive table with filters in colab under python https://colab.research.google.com/notebooks/data_table.ipynb#scrollTo=jcQEX_3vHOUz

but I could not find anything similar for R. Do you have any suggestions?

Thank you

Blinkers answered 24/9, 2020 at 1:27 Comment(0)
R
1

Good question!

So far I found two options:

  1. a fancy one: reactable::reactable() (see link)
  2. a simple one: rmarkdown::paged_table() (see link)
Refrigerator answered 18/2 at 15:56 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.