[R] dbSendQuery with R variables

Jonathan Greenberg greenberg at ucdavis.edu
Tue May 11 00:21:26 CEST 2010


Rhelpers:

I'd like to modify this RSQLite statement:

rs_stations<-dbSendQuery(con_stations, "select * from stations")

so that stations is actually an R variable, e.g.:

stations=c("stationA","stationB")

How would I modify the above statement to query from stations[[1]]
(aka "stationA")?

--j



More information about the R-help mailing list