just use the round command:
output$woeTable <- renderDataTable({ input$tryTree input$threshold
you can also use the fnRowCallback option in renderDataTable if you insist on storing data with a lot of digits and just change the output view:
output$woeTable <- renderDataTable({ input$tryTree input$threshold
Update for DT 1.1:
you have to change
fnRowCallback = I("function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {ind = 2; $('td:eq('+ind+')', nRow).html( (aData[ind]).toFixed(2) );}"))
to
rowCallback = I("function( nRow, aData) {ind = 2; $('td:eq('+ind+')', nRow).html( parseFloat(aData[ind]).toFixed(2) );}"))
source share