Many people pointed out that the 'collapse' argument yields the solution
to my query:

> x <- c("Bob", "loves", "Sally")
> paste(x, collapse=" ")
[1] "Bob loves Sally"

I had looked at the documentation for 'paste' within R and also in several
books before sending my question to R-Help, so I was aware of the
'collapse' argument, but I was making the mistake of abbreviating
'collapse':

> paste(x, col=" ")
[1] "Bob  "   "loves  " "Sally  "

The real source of my confusion was that I wasn't aware that arguments
following '...' must be fully specified.  Now I know that this is
important.  Thanks for the help.

John

--------------------------------------------------------------------
John Miyamoto, Dept. of Psychology, Box 351525
University of Washington, Seattle, WA 98195-1525
Phone 206-543-0805, Fax 206-685-3157, Email [EMAIL PROTECTED]
Homepage http://faculty.washington.edu/jmiyamot/
--------------------------------------------------------------------

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help

Reply via email to