[R] Time to distribute replies to "r-help"

Spencer Graves spencer.graves at pdf.com
Fri Apr 4 19:19:56 CEST 2003


	  There appears to be a problem with the cycle time to distribe replies 
to "r-help":  My reply (copied below) was submitted at 4/3/2003 8:26 AM, 
some 4.5 hours after the original post.  In those 4.5 hours, some 12 
others had submitted public replies.  However, none of those 12 had 
arrived at my computer before I filed mine.  My reply came back to me 
some 24.5 hours after I posted it.

	  Perhaps this problem has already corrected itself.  If not, I hope 
that someone who knows how to arrange for correction of this kind of 
problem will initiate effective corrective action.  (Our colleagues at 
the Eidgenoesche Technische Hochschule Zuerich may be suffering from too 
much success.)

Best Wishes,
Spencer Graves

Spencer Graves wrote:
 > paste( c("Bob", "loves", "Sally"), collapse=" ")
 >
 > Spencer Graves
 >
 > John Miyamoto wrote:
 >
 >> Dear Help,
 >>    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"
 >>
 >> The following function combines the character vector into a string 
in the
 >> way that I want, but it seems somewhat inelegant.
 >>
 >> paste.vector <- function(x, ...) {
 >>     output <- NULL
 >>     for (i in 1:length(x)) output <- paste(output, x[i], ...)
 >>     output    } #end of function definition
 >>
 >> paste.vector(x)
 >> [1] " Bob loves Sally"
 >>
 >> Is there a more natural (no loop) way to do this in R?
 >>
 >> John Miyamoto
 >>
 >> --------------------------------------------------------------------
 >> John Miyamoto, Dept. of Psychology, Box 351525
 >> University of Washington, Seattle, WA 98195-1525
 >> Phone 206-543-0805, Fax 206-685-3157, Email jmiyamot at u.washington.edu
 >> Homepage http://faculty.washington.edu/jmiyamot/
 >> --------------------------------------------------------------------
 >>
 >> ______________________________________________
 >> R-help at stat.math.ethz.ch mailing list
 >> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
 >
 >
 > ______________________________________________
 > R-help at stat.math.ethz.ch mailing list
 > https://www.stat.math.ethz.ch/mailman/listinfo/r-help



More information about the R-help mailing list