John Miyamoto wrote:
> 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"
> ....
Try:
> paste(x,collapse=" ")
and
> help(paste)
--Peter
-------------------------------------------------------------------------------
Peter Wolf, Statistik/Informatik, Fak.f.Wiwi, Uni Bielefeld
[EMAIL PROTECTED], http://www.wiwi.uni-bielefeld.de/~wolf/wolf.html
-------------------------------------------------------------------------------
[[alternate HTML version deleted]]
______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help