【发布时间】:2016-09-15 16:06:52
【问题描述】:
我有一个要传递给 rhandsontable 的数据框。假设数据框有列(A 和 B)。在显示中,我想根据 A 列中的值格式化 B 列,但我不想显示 A 列。有没有办法做到这一点。我在 rhandsontable 中没有看到 column 属性。
谢谢
【问题讨论】:
标签: rhandsontable
我有一个要传递给 rhandsontable 的数据框。假设数据框有列(A 和 B)。在显示中,我想根据 A 列中的值格式化 B 列,但我不想显示 A 列。有没有办法做到这一点。我在 rhandsontable 中没有看到 column 属性。
谢谢
【问题讨论】:
标签: rhandsontable
下面的代码对我有用。如果在从数据集中删除列之前应用过滤器,它应该可以工作。
output$hot <- renderRHandsontable({
hot <- df
if(input$filter > 1) {
hot <- hot[[hot$A %in% input$filter,]
}
hot<-hot[!A]
rhandsontable(DF1)
})
【讨论】: