I would like to display large numbers with comma separation in a datable. How would I include the format currency clause in the renderDataTable function in a Shiny app in order to do this?
This post shows how to do add it to a regular DT, but I'm feeding the datatable into the UI. I don't see currency as one of the options.
output$dummy_data_table <- DT::renderDataTable(
data.frame(A=c(1000000.51,5000.33, 2500, 251), B=c(0.565,0.794, .685, .456)),
extensions = 'Buttons',
server=FALSE,
options = list(
pageLength = 50,
scrollX=TRUE,
dom = 'T<"clear">lBfrtip',
) # close options
) # close renderDataTable