title: how do I change rownames in R shiny?
body: <p>I have tried searching high and low and cannot find an answer to my question.</p>
  
  <p>I am creating an R shiny app for the first time. As part of the app I read in a tab delimited file with column names. Later I then create a matrix and I want to assign the row names to be the column names of the tab delimited file I originally read in and I have no idea how to do this. The server part (I have left out the rest of the code that isn't relevant to this question) looks like this:</p>
  
  <pre><code>server &lt;- function(input, output, session) {
  
  imported_data_reactive &lt;- reactive({
    inFile &lt;- input$data_import
    if (is.null(inFile))
      return(NULL)
    read.table(inFile$datapath, header = TRUE)
  })
  
  stats &lt;- reactive({
    matrix(NA, ncol({imported_data_reactive()}),5)
  })
  </code></pre>
  
  <p>how do I then assign the rownames? I tried:</p>
  
  <pre><code>reactive({
    rownames({stats()}) &lt;- colnames({imported_data_reactive()})
  })
  </code></pre>
  
  <p>but this does not work. I'm sure there is a very simple answer, but it is not obvious to me. </p>
  
  <p>Thanks for any help</p>