I have a table to display in R Shiny, using renderTable, but I would like to change the number of digits only for the second column into 3 digits, and the first and third column into 0 digits. How is this possible?
output$Table_X <- renderTable({
outputData <- loadFunc()
outputData$x
},
digits = 3)
In the line with outputData <- loadFunc(), the list outputData is created, with a dataframe in it called 'X'. This contains three columns with numeric data. Now it the rendertable displays the data as following:
a b c
0.000 1.123 10.000
2.000 2.345 12.000
4.000 5.789 15.000
I would like to have only column 'b' with 3 number of digits, and column 'a' and 'c'with zero number of digits.