Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个要传递给 rhandsontable 的数据框。假设数据框有列(A 和 B)。在显示中,我想根据 A 列中的值格式化 B 列,但我不想显示 A 列。有没有办法做到这一点。我在 rhandsontable 中看不到 column 属性。
谢谢
下面的代码对我有用。如果在从数据集中删除列之前应用过滤器,它应该可以工作。
output$hot <- renderRHandsontable({ hot <- df if(input$filter > 1) { hot <- hot[[hot$A %in% input$filter,] } hot<-hot[!A] rhandsontable(DF1) })