我無法使用renderTable
。這是我得到的錯誤:渲染表不能在Shiny中工作
錯誤UseMethod(「xtable」):因爲沒有適用的方法「xtable」適用於類「性格」
同樣的目標,我想最終輸出是僅2列
- 串聯2-4列
- 第5列
#server.R
shinyServer(function(input, output) {
content_data <- renderTable({
ga$getData(id, start.date="2015-10-01", end.date=Sys.Date()-1,
metrics = "ga:pageViews",
dimensions = "ga:date, ga:day, ga:month, ga:year",
sort = "ga:date",
filter = paste0("ga:[email protected]/tp", input$text))[,2:5]
})
output$table1 <- renderTable(content_data())
})
#ui.R
shinyUI(fluidPage(
textInput("text", label = h3("City"), value = "Enter city name..."),
hr(),
fluidRow(column(12, tableOutput("table1")))
))
的[無表中未在閃亮顯示了(http://stackoverflow.com/questions/34127605/reactive-table-not-showing-up-in-shiny) –
如果你瞭解可能的複製問題..請你幫忙 – Akshit