Hi people!
I trying to create a "dataTable" but i'm having some problem.
I'm catching values from a DB using this:
But when i use the same code in RStudio, it appears that way:
My code:
UI.R
tabPanel("Dados do Banco",
h4("Dados de Saida", align = "center"),
DT::dataTableOutput("contents2")
),
SERVER.R
output$contents2 = DT::renderDataTable({
query
})
DATA.R
query = ("select delta_le
from qt_limite_escoamento
where GRAU = 'N80'")
query = matrix(query, nrow = 1, ncol = 2, byrow = TRUE)
I'm connected with the DATABASE and it's working, but o don't know how to make the data appears correctly in R program.
I need to appear a DATA.FRAME with the right values (206).
Thx