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"
More Related Contents:
- How to create a lag variable within each group?
- ggplot2 – annotate outside of plot
- Why are my dplyr group_by & summarize not working properly? (name-collision with plyr)
- How to succinctly write a formula with many variables from a data frame?
- How to plot two histograms together in R?
- Embedding Image in Shiny App
- How to number/label data-table by group-number from group_by?
- Combining paste() and expression() functions in plot labels
- using stat_function and facet_wrap together in ggplot2 in R
- Can dplyr summarise over several variables without listing each one? [duplicate]
- Scatter plot with error bars
- How to install development version of R packages github repository
- Read a UTF-8 text file with BOM
- Installing of SparkR
- How to GeoCode a simple address using Data Science Toolbox
- R Shiny REST API communication
- ggplot – Multiple legends arrangement
- Extract string before “|” [duplicate]
- How do I copy and paste data into R from the clipboard?
- How to install a package from a download zip file
- How `poly()` generates orthogonal polynomials? How to understand the “coefs” returned?
- Automatically Delete Files/Folders
- Remove facet_wrap labels completely
- How to deal with hdf5 files in R?
- Plotting during a loop in RStudio
- R: sample() command subject to a constraint
- How to add elements to a list in R (loop) [duplicate]
- R – Faster Way to Calculate Rolling Statistics Over a Variable Interval
- Bar plot, no space between bottom of geom and x axis keep space above
- Crop for SpatialPolygonsDataFrame