How to unconcantenate in R

Perhaps this will work for you

ans <- apply(M, 2, function(i) toString(unlist(i)))

ans[1]
#                                Genes 
# "PARP, BRCA1, BRCA2, PARP-1/2, BRCA"

Leave a Comment