【发布时间】:2016-02-09 02:08:17
【问题描述】:
s[enter image description here][1]server.R
df <- read.csv("")
output$out1 <- renderUI({
params <- colnames(df)
# These are the colum names goes as a list into the selectInput..
param_list <- params
# Dynamically create dropdown box
selectInput("params", label = "Choose a variable to Observe", choices = param_list)
# print(param_list)
})
stateDataSubset <- reactive({
input$params
dataSetVariable <- input$params
})
我正在尝试使用input$param,它是在另一个反应函数的另一个函数中动态创建的,不知道为什么我会收到这个错误,因为过去类似的代码已经工作了。 params 在 output$out1 中,现在我想要在 stateDataSubset 函数中输入。
【问题讨论】:
-
通过阅读这些来更好地解释自己...stackoverflow.com/questions/5963269/…Good Luck