I would like to display table on my Shiny app based on the Min and Max Range that is take as input from the user.
Below is my data frame df1
A B C D
12 23 Taken Delivered
23 32 Taken Delivered
32 1 Not Taken Processing
21 43 Not Taken Processing
12 76 Taken Delivered
124 49 Taken Delivered
15 14 Not Taken Processing
12 15 Taken Delivered
The user first inputs the min value and max value of Column A and Column B and Clicks Apply, After that the only rows which satisfies the of both min and max value of both the Column A and Column B should get displayed.
For Example
Min Value of A = 5,
Max Value of A = 15,
Min value of B = 6,
Max Value of B = 15 then, only last two rows should get displayed.
If none of the input rows satisfies the input values error message **Please
Select Appropriate Rage** should display.
UI.R
library(shiny)
shinyUI(fluidPage(
fluidRow(
column(4,textInput("A.Mmin","A min")),
column(4,textInput("AMmax", "A max"))),
fluidRow(
column(4,textInput("BMin","BMin")),
column(4,textInput("BMin", "BMin")),
column(4, submitButton(text = "Apply"))),
fluidRow(
dataTableOutput('table')
)))
Server.R
library(shiny)
shinyServer(function(input, output) {
output$table <- renderDataTable(df1) })

