Hi everyone,
Thanks ahead of time to anyone who takes to help out a new R guy!
I'm trying to create a highly customized HTML table in a Shiny application environment. I've already exhausted all efforts with renderTable and renderDataTable - I'm not satisfied with the output, so I would like to avoid such solutions. In short, I'd like to produce the following table with renderText and a data.frame input (simplistic example):
Values1 Values2 Values3
1/31/2015 100 75 90
2/28/2015 100 80 80
...
As it stands, I have the following line code as part of my ui.R:
mainPanel(textOutput("table1"))
And my server.R contains the following:
shinyServer(function(input, output) {
# INPUT
Dates = as.Date(....)
Values1 = rbind(100, 100, ...)
Values2 = rbind(75, 80, ...)
Values3 = rbind(90, 80, ...)
# OUTPUT
output$table1 = renderText ({
data.frame(Dates, Values1, Values2, Values3)
})
})
And again, thanks to anyone who helps out! Go, R!