Søren Merser <[EMAIL PROTECTED]> writes:

> hi there
> is there a way that i can coerce a vector of integers to ONE  string with 
> the numbers comma separated like:
> 1:500  ->    "1,2,3, ..., 500"
> 
> i've tried deparse, but it divides the result into a vector of string 
> (depending on the setting of width with a max of 500)

paste(1:500, collapse=",")

-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - ([EMAIL PROTECTED])                  FAX: (+45) 35327907

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to