Earlier I wrote about the custom STRJOIN function in OpenOffice. A very handy function when you need to combine all values in a row or column (or combination of the two), separated by a delimiter.
In R this is (also) very easy using paste with the collapse parameter set. For example:
my.data <- data.frame(letters[1:10]) paste(my.data[,1], collapse = "|")  "a|b|c|d|e|f|g|h|i|j"
See here for a example how this can be used.