Hello!
My function is returning a data frame with numbers. And those numbers are not rounded.
I just return this data frame.
In my server.R I want to show this data frame (as a table) and I say:
output$RegResults<-renderTable({
if(is.null(input$file1)){return()}
outdata<-PAout()$outtab
outdata
})
I want to return it for the user on my 2nd tab ("Output Summary") so that my ui.r says:
mainPanel(
tabsetPanel(
tabPanel(...bla-bla...),
tabPanel("Output Summary",
h4(textOutput("caption2")),
tableOutput("RegResults"),
value=2),
tabPanel(...bla-bla...),id='tabpanel'
)
)))
Everything works, but all the entries in the table ("RegResults") are rounded to 2 digits. I'd like some of the columns to have 3 digits. Or, if that's impossible, I'd like all numbers to have 3 digits after the comma.
Thanks a lot for your help!