Вот начало:
library(shiny)
library(dplyr)
x = data.frame(group=c("group1", "group2", "group3","group1","group3", "group4", "group2"),
user=c("user1", "user3", "user5", "user9", "user14", "user18", "user24"),
erro=c("error1", "error2", "error4", "error3", "error2", "error1", "error3")
)
ui = fluidPage(
selectInput("grType", "Select group type", x$group, multiple = TRUE),
tableOutput("myTable")
)
server <- shinyServer(function(input, output, session) {
output$myTable <- renderTable({
req(input$grType)
x %>% filter(group %in% input$grType,
erro %in% c("error2", "error3"))
})
}
)
shinyApp(ui = ui, server = server)