R shiny renderDT() decimal point

First of all, thank you very much for taking the time to read

I am now in Rshiny, using "renderDT" to display data, but there is a problem, my original data has a lot of decimal places, but I only want to display two decimal points in renderDT, what parameters do you have to achieve this? function? thank you very much

I've tried options(digits = 2) , it didn't work

thank you very much

Try formatRound(). Have a look at the example: R: Format table columns

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.