Here is a simple example. Suppose I look at a table and I want to load the table excluding the Sepal.Length column.
What should I do? I am trying to output the Sepal.Length column and click on excel, but it still gives me all the data. I do not want it. Is there a way I can manipulate this?
Perhaps I am not familiar with how it works in the backend, after I use the extension to reorder a string or search / filter table, then the downloaded files display the table. So I want something like this when I hide the columns.
This is useful when I have too many columns in a table, and sometimes I don’t need all of them.
library(shiny)
shinyApp(
ui = fluidPage(DT::dataTableOutput('tbl')),
server = function(input, output) {
output$tbl = DT::renderDataTable(
iris, extensions = "Buttons",
options = list(dom = "Blfrtip",
buttons = list('copy', 'excel', 'print', 'colvis'))
)
}
)
I really appreciate your help.
source
share