title: How to custom format numeric columns in shiny renderTable?
body: <p>I would like to custom format the numeric columns in my table. I would like to have the p-values in scientific format, and the other numeric columns with 0 or 2 decimals. How can I do this? I have tried </p>
  
  <pre><code>output$addtable &lt;- renderTable({ ...} , digits = -2)
  </code></pre>
  
  <p>but that converts all numeric columns into scientific format. </p>
  
  <pre><code>output$addtable &lt;- renderTable({
      dataset &lt;- datasetInput()
      d=dataset[which(dataset$gene==input$textgene),]
      names(d)=c("Gene","P","CmafUsed","NsnpsUsed","MinP","MinGene","Ratio")
      if(dim(d)[1]==0) {'No entry found'} else return(d)    
    })  
  </code></pre>
  
  <p>What I am looking for is to have:</p>
  
  <pre><code>Gene    P       CmafUsed    NsnpsUsed   MinP    MinGene Ratio
  GENE1   1.50E-05    0.20    12        4.62E-05  GENE2   1.11
  </code></pre>