[R] integer vector to a string

From: Søren Merser <merser_at_image.dk>
Date: Thu 11 May 2006 - 04:49:27 EST


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)

regards soren



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu May 11 05:13:49 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 11 May 2006 - 06:10:04 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.