library(shiny)
library(DT)
ui <- basicPage(
mainPanel(DT::dataTableOutput('row_modif')),
textOutput("selectedrow")
)
server <- function(input, output, session){
output$row_modif<-renderDT({
datatable(
iris, selection = "single")
})
output$selectedrow<-renderPrint({input$row_modif_rows_selected})
}
shinyApp(ui, server)
it is possible to access the number of the selected line by:
input$row_modif_rows_selected
But how i can acess one specific column from this line selected? the idea is to click on a row and access the species and Sepal.Length column of that row for example