r - 基于响应式数据框创建值框?
问题描述
我在 Shiny 中制作了一个交互式仪表板,现在我制作了一个交互式数据框,它根据输入进行过滤:
反应式数据框:
reactiv.export <- reactive({
req(input$selectVariable)
export %>% filter(export$`e-mail` %in% input$selectVariable)
})
而且我想根据该反应数据框制作一个值框,但它似乎不起作用:/
用户界面方面:
valueBoxOutput("box1")
服务器端 :
output$box1 <-renderValueBox({
valueBox(nrow(reactiv.export), "test :",width = 3, icon = icon("list"), color = "purple")
我使用 shinydashboard 包来制作我的仪表板。
如果有人对我的问题有答案,谢谢:)
解决方案
推荐阅读
- tabs - 在 Bootstrap 自定义选项卡中更改点击事件
- assembly - qemu 和笔记本电脑引导之间的图形差异(自定义引导加载程序)
- android - 如何在 xamarin android 中以编程方式设置菜单项文本
- c# - 属性类中的 ASPNET CORE 依赖注入
- azure - 无法重新创建 Azure Maps(未找到)
- javascript - 使用日历库 codeigniter 在顶部显示 3 个月的日历,并在顶部显示上一个和下一个箭头
- angularjs - 从一个页面导航到另一个页面时如何显示消息
- python - 即使在使用当前 python 版本安装后,numpy 导入错误
- linux - 为什么 u-boot 在 rpi3 中调用 grub?
- python - 注销按钮策略更改的 GUI 自动化。pywinauto.findwindows.ElementNotFoundError:错误。如何切换上下文?