【发布时间】:2018-07-13 07:36:02
【问题描述】:
我正在尝试根据 selectInput 中的选定列对数据进行子集化。我试过了:
as.character(input$LabelBubble)
但这似乎并没有提取列文本。我选择以下列的其余代码:
output$LabelBubble = renderUI(if(input$PlotType=="Dynamic Bubble Scatter"){
mtext <- sapply(loadfile1(), is.factor)
mcols<-as.list(colnames(loadfile1()[,mtext]))
selectInput(
"LabellBubble",
label = "Select factor variable",
"",selectize=TRUE,multiple=FALSE,choices=mcols
)
})
请指教。
【问题讨论】:
标签: r shiny data-science