powered by
Extend matrix to include new columns in matrix
extendMatrix(mtx, col.names)
Matrix with new columns but rows retained
Matrix
Columns that should be included in matrix
library(dplyr) gene.union <- lapply(conosClusterList, colnames) %>% Reduce(union, .) extendMatrix(conosClusterList[[1]], col.names=gene.union)
Run the code above in your browser using DataLab