I have an quarto script rendering to HTML, which takes a large dataset (survey questions and demographics) and uses for loops to produce summary tables (datatables from DT
package) for each variable and each survey question x demographic pairing…
This is the kind of format I end up with for each question (i.e., a section for all survey questions, and then the same for all demographic questions but with demo/survey swapped around):
Because there are so many variables, once rendered it would be helpful to be able to filter the contents shown – for example, by having a list of all survey questions and all demographic variables at the top and being able to de/select those I do/don’t want to see results for – meaning both the section for that question and the results of that question in tables of other questions sections can be hidden. I’d like this to work so that I can just send somebody the rendered file and they can filter it to show what they need to see, without having to run the script which takes hours.
I’m not sure where to start. Is this possible in HTML? I’d wondered if it’d need to be a shiny app but I have no experience/knowledge on shiny and could do with a fairly quick solution.