[R] Comma separated vector

Manta mantino84 at libero.it
Fri May 17 17:46:59 CEST 2013


Hi all,

I have a vector of numbers, and to be able to pass it to RMySQL and use the
IN clause I need to have this vector to be a single list numeric and comma
separated.

I saw the post below but it is about strings, which I do not need (I cannot
pass strings in this SQL query, I need something like ' where ASSETT in
(1,2,3,4,5)'

http://stackoverflow.com/questions/6347356/creating-a-comma-separated-vector


Any clue?



--
View this message in context: http://r.789695.n4.nabble.com/Comma-separated-vector-tp4667340.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list