From the course: Building Data Apps with R and Shiny: Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Static tables with renderTable

Static tables with renderTable

From the course: Building Data Apps with R and Shiny: Essential Training

Start my 1-month free trial

Static tables with renderTable

- [Male Instructor] The simplest solution for displaying static tables in your Shiny app is to use the built-in functions renderTable and tableOutput. Do keep in mind that there's minimal scope for customization or beautification of these tables. Let's jump into the exercise files and see how we can use these functions in practice. So we need to go to folder 0402 and we'll open up our RStudio project. Let's open our UI.R file and our server.R file and we'll run the app to see what it currently looks like. So the first tab that'll show in the app first, we can see we've got four columns of a data set and when we change the value in this slider it changes the individuals who are shown to us in the table. So here are all of the characters in the Star Wars data set who are shorter than 105 centimeters. Okay, let's see what customization we can make to this table by going back to the server.R file. The first argument of renderTable is the data frame, or the table that we wish to display…

Contents