小编Jac*_*ton的帖子

R-闪亮| cat(list(...),file,sep,fill,labels,append)中的错误:'cat'无法处理参数1(类型'list')

我正在尝试编写一个Shiny应用程序,并且需要先操纵我的数据,然后才能开始对其进行可视化。我有三个输入来操纵数据。1.频道2.排除单词3.在其中找到所有与此单词相关的评论

我能够完成前两个,但是在使用grep()函数查找包含某个单词的所有行时,我遇到了以下错误“ cat(list(...),file,... sep,fill,labels,append):参数1(类型“ list”)不能由“ cat”处理”

有人知道如何处理吗?或究竟是什么原因造成的?我认为正是grep()函数使用列表来告诉我哪些行包含该单词。但是我不确定是否可以解决这个问题,并且已经花了很多时间在这上面

请在下面找到我的两个代码段;

用户界面

fluidPage(

titlePanel("Groupon Word Cloud"),

sidebarLayout(

sidebarPanel(
  selectInput(    inputId   = "selection", 
                  label     = "Choose a Supply Channel",
                  choices   = c('All',
                              'G1',
                              'Getaways',
                              'Goods',
                              'Live',
                              'National',
                              'N/A',
                              'MM'),        
                  selected  = 'All'),
  hr(),
  textInput(      inputId   = "exclude", 
                  label     = "Exclude a word"),
  textInput(      inputId   = "drill", 
                  label     = "Drill down into a word"),
  submitButton(   text      = "Update"),
  hr(),
  dateRangeInput( inputId   = "date", 
                  label     = "Date Range",
                  start     = "2015-02-01", 
                  end       = NULL , 
                  min …
Run Code Online (Sandbox Code Playgroud)

r list shiny shiny-server

5
推荐指数
3
解决办法
2万
查看次数

标签 统计

list ×1

r ×1

shiny ×1

shiny-server ×1