[R] create string of comma-separated content of vector

2009-05-19 Thread Law, Jason
See ?toString x <- 0:10 toString(x) See ?sQuote for cases where the vector is a character and needs to be quoted. Jason Law Statistician City of Portland Bureau of Environmental Services Water Pollution Control Laboratory 6543 N Burlington Avenue Portland, OR 97203-5452 jason@bes.ci.portland

Re: [R] create string of comma-separated content of vector

2009-05-19 Thread Mark Wardle
see ?paste e.g. x <- seq(0,10,1) paste(x, collapse=", ") 2009/5/19 Katharina May : > Hi, > > how do I create a string of the comma-separated content of a vector? > > I've got the vector i with several numeric values as content: >>str(i) > num 99 > > and want to create a SQL statement to look li

[R] create string of comma-separated content of vector

2009-05-19 Thread Katharina May
Hi, how do I create a string of the comma-separated content of a vector? I've got the vector i with several numeric values as content: >str(i) num 99 and want to create a SQL statement to look like the following where the part '(2, 4, 6, 7)' should be the content of the vector i: select * from