【发布时间】:2019-08-01 12:03:00
【问题描述】:
我有一个限制条件,根据该限制条件,我将细分市场分配给客户。但我想更改 ui 中的约束并立即在后台计算段。所以这是我的代码。
shinyServer(function(input, output) {
Customer$Segment <- reactive({
onetimer <- input$onetimer
firstcons <- input$firstcons
secondcons <- input$secondcons
rental1 <- input$rental1
rental2 <- input$rental2
ifelse(Customer$Rentals < rental1 & Customer$TotalPayment <= firstcons, "One-Timer",
......)
output$result <- renderText({Customer$Segment})
收听http://127.0.0.1:6199 警告:代表错误:尝试 复制“闭包”类型的对象 49: $
如何使用闪亮编辑我的数据?
【问题讨论】:
-
你能分享更多代码吗?
标签: r user-interface server shiny edit