I would like to display an R dataframe as a table in Power BI. Using the "R script visual" widget, here is one possible solution:
library(gridExtra)
library(grid)
d<-head(df[,1:3])
grid.table(d)
reference: [https://cran.r-project.org/web/packages/gridExtra/vignettes/tableGrob.html][1]
As stated in the reference - this approach only works for small tables.
Is there an alternative approach that will allow an R data frame to be displayed as a table in Power BI - specifically for larger tables that can be 'scrolled'?