I am new to Shiny
and R
both. I am trying to capture input value from Shiny UI
part and based on the value, I am filtering the records from dataframe. I am using this code:
dat <- sqldf("select * from dat where CMPNT_NM = 'input$Compound'")
It's not returning any rows, just column name is coming. If I give any hardcoded value like mP
, then it's running perfectly.
Any idea if I am doing something wrong? Thanks in advance.