【发布时间】:2016-10-08 12:25:58
【问题描述】:
目前我正在开发自己的闪亮仪表板。我想请你帮忙。我想在与Data_Location()$Location_skey 对应的输入框中显示Data_Location()$Address。通常你可以这样做:
selectInput("KPI", "Choose a KPI:", choices = c("Aantal Sessies Aansluiting"="AantalSessiesAansluiting",
"Aantal Unieke RFIDS Aansluitingg"="AantalUniekeRFIDsAansluiting",
"Beschikbare Dagen Aansluiting"="BeschikbareDagenAansluiting",selected="")
不同的是我要使用数据框列。
head(Data_Location()$Location_skey)
[1] -1
[2] 1
[3] 2
[4] 3
[5] 4
head(Data_Location()$Address)
[1] onbekend
[2] Putstraat 86
[3] 1e De Riemerstraat 1
[4] Van Spaenstraat 23
[5] Suze Groeneweglaan 323
selectInput("location", "Selected a charge point",choices =c("",Data_Location()$Location_skey), selected="")
感谢您阅读这篇文章,如果您能帮助我,我将非常高兴。
谢谢!
【问题讨论】:
标签: r shiny shinydashboard