How do you paste list of items and get the result as shown below?
mylist<- list(c(\"PDLIM5\", \"CBG\"), c(\"PDLIM5\", \"GTA\"), \"DDX60\")
you can try:
sapply(mylist, paste, collapse=":") #[1] "PDLIM5:CBG" "PDLIM5:GTA" "DDX60"
The result is a vector.
If you want to further paste the result, you can do:
paste(sapply(mylist, paste, collapse=":"), collapse=" ") #[1] "PDLIM5:CBG PDLIM5:GTA DDX60"