I have a list which contains several data.frames in same format, with these data.frames I would like to make a tablist to show each of the data.frame as a DT::datatable and a plot out of it in below, the following code works fine:
createTabs <- function(df) {
tabPanel(
renderDataTable(df),
renderPlotly(volcano_plot(df))
)}
myTabs <- lapply(myList, createTabs)
return(do.call(tabsetPanel,myTabs))
However, this way I did not assign output ID to each of the renderDataTable object, later if I would like to get the user selected rows to do some statistics in the datatable like in this one
How do I get the data from the selected rows of a filtered datatable (DT)?
It will not be possible because I can't get the output id of those datatables, I wonder if there's a way to assign an output ID to each of the datatables when I create then with renderDataTable() already, or is there any other way round? Any ideas are welcome!