统计xx内TRUE 的数量 sum(xx)注意,若xx内有NA, 使用sum会返回NA。所以最好使用:sum(xx, na.rm = T)
R 统计True/ False的数目
原文:https://www.cnblogs.com/emanlee/p/14877789.html