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.
看一个简单的代码
library(reactable) data = data.frame(x = c('a','a','b','b'), values = c(NA,5,3,NA)) reactable(data, groupBy = 'x')
是否可以只计算不是 NA 的行?
我想看到 a(1), b(1)
您可以使用 na.omit() 删除 NA
data = data.frame(x = c('a','a','b','b'), values = c(NA,5,3,NA)) data = na.omit(data) reactable(data, groupBy = 'x')