> Suppose I have a character vector.
>
> x <- c("Bob", "loves", "Sally")
>
> I want to combine it into a single string: "Bob loves Sally" .
> paste(x) yields:
> paste(x)
> [1] "Bob" "loves" "Sally"
>
> Is there a more natural (no loop) way to do this in R?
>
RTFM:
> paste(x, collapse=" ")
[1] "Bob loves Sally"
Ray