I am trying to make an application with 2 filters.
The first filter gives choices of coloumn name.
The second filter gives choices of rows from the selected coloumn.
I have managed to use uiOutput and renderUI to make the second filter dynamic BUT...
The data doesnt reflect the selection of the second filter.
if input$a represents the column choice, and input$b the row choice, the proper order when using square brackets to subset a data.frame is rows first then columns. compare
> mtcars["vs",1:3]
mpg cyl disp
NA NA NA NA
> mtcars[1:3,"vs"]
[1] 0 0 1
if you want your result of such a subset to always be in data.frame/tibble form then best make cars be a tibble, otherwise as you see, selection of a single column, would cause the return to be the raw vector unwrapped from the containing frame