【问题标题】:is there a way to hide a column in rhandsontable when passing a dataframe传递数据框时有没有办法在 rhandsontable 中隐藏一列
【发布时间】:2016-09-15 16:06:52
【问题描述】:

我有一个要传递给 rhandsontable 的数据框。假设数据框有列(A 和 B)。在显示中,我想根据 A 列中的值格式化 B 列,但我不想显示 A 列。有没有办法做到这一点。我在 rhandsontable 中没有看到 column 属性。

谢谢

【问题讨论】:

    标签: rhandsontable


    【解决方案1】:

    下面的代码对我有用。如果在从数据集中删除列之前应用过滤器,它应该可以工作。

    output$hot <- renderRHandsontable({
        hot <- df
        if(input$filter > 1) {
        hot <- hot[[hot$A %in% input$filter,]
         }
        hot<-hot[!A]
        rhandsontable(DF1)
     })
    

    【讨论】:

      猜你喜欢
      • 2011-07-06
      • 1970-01-01
      • 2016-01-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-05-29
      • 2021-09-02
      • 1970-01-01
      相关资源
      最近更新 更多