Skip to content
Prev 22328 / 398502 Next

variables inside an Rdi-select statement?!

On Fri, 2 Aug 2002, Stephan Holl wrote:

            
In short, it did what you asked it to, which is not an error.

Use paste() to assemble the string you want to pass.  Nothing you did
tells R that `ezg' in the last line is a reference to an R variable.  I'd
give you an example except I don't see the point of your SQL.  I think you
may mean

paste("SELECT s FROM", ezg, "WHERE s!='12'")