Use the collapse argument to paste.
> paste(c('Bob', 'loves', 'Sally'), collapse = ' ')
[1] "Bob loves Sally"
John Miyamoto <jmiyamot at u.washington.edu> writes:
> Suppose I have a character vector.
>
> x <- c("Bob", "loves", "Sally")
>
> I want to combine it into a single string: "Bob loves Sally" .