powered by
reduceM(x, mat, threshold=0)
colSums
mat <- matrix(c(1:25), nrow = 5, ncol = 5, dimnames = list(c(LETTERS[1:5]), c(1:5))) xx <- LETTERS[c(2, 4, 5)] reduceM(xx, mat)
Run the code above in your browser using DataLab