Dear all,
I am learning shiny and am trying to write a simple app showing the built-in data sets in a shiny-output. With the code below, I am trying to show the entire table of mtcars or iris in the mainpanel, but in the selectInput pull-down menue, the different atomic vectors of the data sets appear. Instead, I would like to have the entire table rendered. What am I doing wrong here?
Thanks for the help
Hi @cyrus. The choice of your selectInput is like a list of list structure, so the choices will be each column of the tables and group in categories of the table names. And the input$buildinTable will be the selected column value. If you want to output table, the choice of the selectInput could be the names of the tables and render the table according to the selected table name.
Hi @raytong thanks a lot for your help, it is that simple... How exactly does the get-function work here? Reading up on the function tells me that get command calls an object by its name, but as a command, >mtcars and >get("mtcars") both output the full table of mtcars. So "get" is required to explicitly search for an object with that name?
thanks again,
cyrus