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