Shiny Server get number of records in a dataframe
<p>Im trying to learn shiny and to read in an excel sheet and show both the contents of the excel sheet and the number of records in the UI</p>

<p>I'm a bit lost. when i read in the data set, how do i reference the dataframe that i have read in</p>

<pre><code># Server Code
server &lt;- shinyServer(function(input, output) {

  # Read the Data in
 library(xlsx)

  # Output the actual Table
  output$contents &lt;- renderTable({
    test_df &lt;- read.xlsx(inFile$datapath,1)
    test_df
    )})

  # Output the number of records to check
  output$text &lt;- renderText({
    paste("Number of records is:", nrow(test_df))
  })
})
</code></pre>