【发布时间】:2021-09-24 03:21:08
【问题描述】:
我在 Shiny 中选择数据框变量作为输入时遇到问题。
inputPanel(
selectInput("a", label = "N:",
choices = c(1,2, 3, 4), selected = 1),
selectInput("dataframe", label = "dataframe",
choices = c(A,B), selected = A)
)
在 renderPlot 中,我的 input$k 工作正常,因为它是一个简单的数字。
但是,对于 input$dataframe,它不起作用。
我收到错误消息:non-numeric argument to binary operator。
提前感谢您的帮助。
【问题讨论】:
标签: r shiny r-markdown